Skip to content

Instantly share code, notes, and snippets.

@jrafanie
Last active May 11, 2016 15:57
Show Gist options
  • Save jrafanie/7208664c8e5901916e4a8fc71db19064 to your computer and use it in GitHub Desktop.
Save jrafanie/7208664c8e5901916e4a8fc71db19064 to your computer and use it in GitHub Desktop.
rails 5.0 stable - remove_connection from subclass drops primary pool ???
11:38:58 ~/Code/manageiq (remove_connection_specification_name_rails_5_workaround) (2.2.4) + be rails c
** Using session_store: ActionDispatch::Session::MemCacheStore
DEPRECATION WARNING: You didn't set `secret_key_base`. Read the upgrade documentation to learn more about this new config option. (called from validate_secret_key_config! at /Users/joerafaniello/.gem/ruby/2.2.4/gems/railties-5.0.0.rc1/lib/rails/application.rb:509)
Loading development environment (Rails 5.0.0.rc1)
irb(main):001:0>
irb(main):002:0*
irb(main):003:0*
irb(main):004:0*
irb(main):005:0* MiqRegionRemote.connection_handler.connection_pool_list.collect {|pool| pool.spec.name}
=> ["primary"]
irb(main):006:0> MiqRegionRemote.connection.tables.size
PostgreSQLAdapter#log_after_checkout, connection_pool: size: 10, connections: 1, in use: 1, waiting_in_queue: 0
=> 295
irb(main):007:0> MiqRegionRemote.remove_connection
=> {:adapter=>"postgresql", :encoding=>"utf8", :username=>"root", :pool=>10, :checkout_timeout=>1, :wait_timeout=>5, :min_messages=>"notice", :database=>"vmdb_development", :host=>"localhost"}
irb(main):008:0> MiqRegionRemote.connection_handler.connection_pool_list.collect {|pool| pool.spec.name}
=> []
irb(main):009:0> MiqRegionRemote.connection
ActiveRecord::ConnectionNotEstablished: No connection pool with id primary found.
...
irb(main):010:0> MiqRegionRemote.establish_connection
=> #<ActiveRecord::ConnectionAdapters::ConnectionPool:0x007f889d2e4668 @mon_owner=nil, @mon_count=0, @mon_mutex=#<Mutex:0x007f889d2e4618>, @spec=#<ActiveRecord::ConnectionAdapters::ConnectionSpecification:0x007f889d2e4aa0 @name="MiqRegionRemote", @config={:adapter=>"postgresql", :encoding=>"utf8", :username=>"root", :pool=>10, :checkout_timeout=>1, :wait_timeout=>5, :min_messages=>"notice", :database=>"vmdb_development", :host=>"localhost"}, @adapter_method="postgresql_connection">, @checkout_timeout=1.0, @reaper=#<ActiveRecord::ConnectionAdapters::ConnectionPool::Reaper:0x007f889d2e45f0 @pool=#<ActiveRecord::ConnectionAdapters::ConnectionPool:0x007f889d2e4668 ...>, @frequency=nil>, @size=10, @thread_cached_conns=#<Concurrent::Map:0x007f889d2e45a0 entries=0 default_proc=nil>, @connections=[], @automatic_reconnect=true, @now_connecting=0, @new_cons_enabled=true, @available=#<ActiveRecord::ConnectionAdapters::ConnectionPool::ConnectionLeasingQueue:0x007f889d2e4500 @lock=#<ActiveRecord::ConnectionAdapters::ConnectionPool:0x007f889d2e4668 ...>, @cond=#<MonitorMixin::ConditionVariable:0x007f889d2e44d8 @monitor=#<ActiveRecord::ConnectionAdapters::ConnectionPool:0x007f889d2e4668 ...>, @cond=#<Thread::ConditionVariable:0x007f889d2e4488>>, @num_waiting=0, @queue=[]>>
irb(main):011:0> MiqRegionRemote.connection_handler.connection_pool_list.collect {|pool| pool.spec.name}
=> ["MiqRegionRemote"]
irb(main):012:0> MiqRegionRemote.connection
=> #<ActiveRecord::ConnectionAdapters::PostgreSQLAdapter:0x007f889d2c5cb8 @transaction_manager=#<ActiveRecord::ConnectionAdapters::TransactionManager:0x007f889d2c5c68 @stack=[], @connection=#<ActiveRecord::ConnectionAdapters::PostgreSQLAdapter:0x007f889d2c5cb8 ...>>, @query_cache={}, @query_cache_enabled=false, @connection=#<PG::Connection:0x007f889d2c5948>, @owner=#<Thread:0x007f88918bc3f8 run>, @instrumenter=#<ActiveSupport::Notifications::Instrumenter:0x007f889335b268 @id="75d41d12f4daecb13843", @notifier=#<ActiveSupport::Notifications::Fanout:0x007f8893701e30 @subscribers=[#<ActiveSupport::Notifications::Fanout::Subscribers::Evented:0x007f8898cf81b8 @pattern="render_template.action_view", @delegate=#<ActionView::LogSubscriber:0x007f8898cf8488 @root=nil, @queue_key="ActionView::LogSubscriber-70112328008260", @patterns=["render_template.action_view", "render_partial.action_view", "render_collection.action_view", "logger.action_view"]>, @can_publish=false>, #<ActiveSupport::Notifications::Fanout::Subscribers::Evented:0x007f8898cfb318 @pattern="render_partial.action_view", @delegate=#<ActionView::LogSubscriber:0x007f8898cf8488 @root=nil, @queue_key="ActionView::LogSubscriber-70112328008260", @patterns=["render_template.action_view", "render_partial.action_view", "render_collection.action_view", "logger.action_view"]>, @can_publish=false>, #<ActiveSupport::Notifications::Fanout::Subscribers::Evented:0x007f8898cf3ed8 @pattern="render_collection.action_view", @delegate=#<ActionView::LogSubscriber:0x007f8898cf8488 @root=nil, @queue_key="ActionView::LogSubscriber-70112328008260", @patterns=["render_template.action_view", "render_partial.action_view", "render_collection.action_view", "logger.action_view"]>, @can_publish=false>, #<ActiveSupport::Notifications::Fanout::Subscribers::Evented:0x007f8898cf3c58 @pattern="logger.action_view", @delegate=#<ActionView::LogSubscriber:0x007f8898cf8488 @root=nil, @queue_key="ActionView::LogSubscriber-70112328008260", @patterns=["render_template.action_view", "render_partial.action_view", "render_collection.action_view", "logger.action_view"]>, @can_publish=false>, #<ActiveSupport::Notifications::Fanout::Subscribers::Evented:0x007f88988e3cd0 @pattern="start_processing.action_controller", @delegate=#<ActionController::LogSubscriber:0x007f88988e3f78 @queue_key="ActionController::LogSubscriber-70112325869500", @patterns=["start_processing.action_controller", "process_action.action_controller", "halted_callback.action_controller", "send_file.action_controller", "redirect_to.action_controller", "send_data.action_controller", "unpermitted_parameters.action_controller", "write_fragment.action_controller", "read_fragment.action_controller", "exist_fragment?.action_controller", "expire_fragment.action_controller", "expire_page.action_controller", "write_page.action_controller", "logger.action_controller"]>, @can_publish=false>, #<ActiveSupport::Notifications::Fanout::Subscribers::Evented:0x007f88988e3af0 @pattern="process_action.action_controller", @delegate=#<ActionController::LogSubscriber:0x007f88988e3f78 @queue_key="ActionController::LogSubscriber-70112325869500", @patterns=["start_processing.action_controller", "process_action.action_controller", "halted_callback.action_controller", "send_file.action_controller", "redirect_to.action_controller", "send_data.action_controller", "unpermitted_parameters.action_controller", "write_fragment.action_controller", "read_fragment.action_controller", "exist_fragment?.action_controller", "expire_fragment.action_controller", "expire_page.action_controller", "write_page.action_controller", "logger.action_controller"]>, @can_publish=false>, #<ActiveSupport::Notifications::Fanout::Subscribers::Evented:0x007f88988e3910 @pattern="halted_callback.action_controller", @delegate=#<ActionController::LogSubscriber:0x007f88988e3f78 @queue_key="ActionController::LogSubscriber-70112325869500", @patterns=["start_processing.action_controller", "process_action.action_controller", "halted_callback.action_controller", "send_file.action_controller", "redirect_to.action_controller", "send_data.action_controller", "unpermitted_parameters.action_controller", "write_fragment.action_controller", "read_fragment.action_controller", "exist_fragment?.action_controller", "expire_fragment.action_controller", "expire_page.action_controller", "write_page.action_controller", "logger.action_controller"]>, @can_publish=false>, #<ActiveSupport::Notifications::Fanout::Subscribers::Evented:0x007f88988e3730 @pattern="send_file.action_controller", @delegate=#<ActionController::LogSubscriber:0x007f88988e3f78 @queue_key="ActionController::LogSubscriber-70112325869500", @patterns=["start_processing.action_controller", "process_action.action_controller", "halted_callback.action_controller", "send_file.action_controller", "redirect_to.action_controller", "send_data.action_controller", "unpermitted_parameters.action_controller", "write_fragment.action_controller", "read_fragment.action_controller", "exist_fragment?.action_controller", "expire_fragment.action_controller", "expire_page.action_controller", "write_page.action_controller", "logger.action_controller"]>, @can_publish=false>, #<ActiveSupport::Notifications::Fanout::Subscribers::Evented:0x007f88988e3550 @pattern="redirect_to.action_controller", @delegate=#<ActionController::LogSubscriber:0x007f88988e3f78 @queue_key="ActionController::LogSubscriber-70112325869500", @patterns=["start_processing.action_controller", "process_action.action_controller", "halted_callback.action_controller", "send_file.action_controller", "redirect_to.action_controller", "send_data.action_controller", "unpermitted_parameters.action_controller", "write_fragment.action_controller", "read_fragment.action_controller", "exist_fragment?.action_controller", "expire_fragment.action_controller", "expire_page.action_controller", "write_page.action_controller", "logger.action_controller"]>, @can_publish=false>, #<ActiveSupport::Notifications::Fanout::Subscribers::Evented:0x007f88988e3370 @pattern="send_data.action_controller", @delegate=#<ActionController::LogSubscriber:0x007f88988e3f78 @queue_key="ActionController::LogSubscriber-70112325869500", @patterns=["start_processing.action_controller", "process_action.action_controller", "halted_callback.action_controller", "send_file.action_controller", "redirect_to.action_controller", "send_data.action_controller", "unpermitted_parameters.action_controller", "write_fragment.action_controller", "read_fragment.action_controller", "exist_fragment?.action_controller", "expire_fragment.action_controller", "expire_page.action_controller", "write_page.action_controller", "logger.action_controller"]>, @can_publish=false>, #<ActiveSupport::Notifications::Fanout::Subscribers::Evented:0x007f88988e3190 @pattern="unpermitted_parameters.action_controller", @delegate=#<ActionController::LogSubscriber:0x007f88988e3f78 @queue_key="ActionController::LogSubscriber-70112325869500", @patterns=["start_processing.action_controller", "process_action.action_controller", "halted_callback.action_controller", "send_file.action_controller", "redirect_to.action_controller", "send_data.action_controller", "unpermitted_parameters.action_controller", "write_fragment.action_controller", "read_fragment.action_controller", "exist_fragment?.action_controller", "expire_fragment.action_controller", "expire_page.action_controller", "write_page.action_controller", "logger.action_controller"]>, @can_publish=false>, #<ActiveSupport::Notifications::Fanout::Subscribers::Evented:0x007f88988e2fb0 @pattern="write_fragment.action_controller", @delegate=#<ActionController::LogSubscriber:0x007f88988e3f78 @queue_key="ActionController::LogSubscriber-70112325869500", @patterns=["start_processing.action_controller", "process_action.action_controller", "halted_callback.action_controller", "send_file.action_controller", "redirect_to.action_controller", "send_data.action_controller", "unpermitted_parameters.action_controller", "write_fragment.action_controller", "read_fragment.action_controller", "exist_fragment?.action_controller", "expire_fragment.action_controller", "expire_page.action_controller", "write_page.action_controller", "logger.action_controller"]>, @can_publish=false>, #<ActiveSupport::Notifications::Fanout::Subscribers::Evented:0x007f88988e2dd0 @pattern="read_fragment.action_controller", @delegate=#<ActionController::LogSubscriber:0x007f88988e3f78 @queue_key="ActionController::LogSubscriber-70112325869500", @patterns=["start_processing.action_controller", "process_action.action_controller", "halted_callback.action_controller", "send_file.action_controller", "redirect_to.action_controller", "send_data.action_controller", "unpermitted_parameters.action_controller", "write_fragment.action_controller", "read_fragment.action_controller", "exist_fragment?.action_controller", "expire_fragment.action_controller", "expire_page.action_controller", "write_page.action_controller", "logger.action_controller"]>, @can_publish=false>, #<ActiveSupport::Notifications::Fanout::Subscribers::Evented:0x007f88988e2bf0 @pattern="exist_fragment?.action_controller", @delegate=#<ActionController::LogSubscriber:0x007f88988e3f78 @queue_key="ActionController::LogSubscriber-70112325869500", @patterns=["start_processing.action_controller", "process_action.action_controller", "halted_callback.action_controller", "send_file.action_controller", "redirect_to.action_controller", "send_data.action_controller", "unpermitted_parameters.action_controller", "write_fragment.action_controller", "read_fragment.action_controller", "exist_fragment?.action_controller", "expire_fragment.action_controller", "expire_page.action_controller", "write_page.action_controller", "logger.action_controller"]>, @can_publish=false>, #<ActiveSupport::Notifications::Fanout::Subscribers::Evented:0x007f88988e2a10 @pattern="expire_fragment.action_controller", @delegate=#<ActionController::LogSubscriber:0x007f88988e3f78 @queue_key="ActionController::LogSubscriber-70112325869500", @patterns=["start_processing.action_controller", "process_action.action_controller", "halted_callback.action_controller", "send_file.action_controller", "redirect_to.action_controller", "send_data.action_controller", "unpermitted_parameters.action_controller", "write_fragment.action_controller", "read_fragment.action_controller", "exist_fragment?.action_controller", "expire_fragment.action_controller", "expire_page.action_controller", "write_page.action_controller", "logger.action_controller"]>, @can_publish=false>, #<ActiveSupport::Notifications::Fanout::Subscribers::Evented:0x007f88988e27e0 @pattern="expire_page.action_controller", @delegate=#<ActionController::LogSubscriber:0x007f88988e3f78 @queue_key="ActionController::LogSubscriber-70112325869500", @patterns=["start_processing.action_controller", "process_action.action_controller", "halted_callback.action_controller", "send_file.action_controller", "redirect_to.action_controller", "send_data.action_controller", "unpermitted_parameters.action_controller", "write_fragment.action_controller", "read_fragment.action_controller", "exist_fragment?.action_controller", "expire_fragment.action_controller", "expire_page.action_controller", "write_page.action_controller", "logger.action_controller"]>, @can_publish=false>, #<ActiveSupport::Notifications::Fanout::Subscribers::Evented:0x007f88988e2588 @pattern="write_page.action_controller", @delegate=#<ActionController::LogSubscriber:0x007f88988e3f78 @queue_key="ActionController::LogSubscriber-70112325869500", @patterns=["start_processing.action_controller", "process_action.action_controller", "halted_callback.action_controller", "send_file.action_controller", "redirect_to.action_controller", "send_data.action_controller", "unpermitted_parameters.action_controller", "write_fragment.action_controller", "read_fragment.action_controller", "exist_fragment?.action_controller", "expire_fragment.action_controller", "expire_page.action_controller", "write_page.action_controller", "logger.action_controller"]>, @can_publish=false>, #<ActiveSupport::Notifications::Fanout::Subscribers::Evented:0x007f88988e2380 @pattern="logger.action_controller", @delegate=#<ActionController::LogSubscriber:0x007f88988e3f78 @queue_key="ActionController::LogSubscriber-70112325869500", @patterns=["start_processing.action_controller", "process_action.action_controller", "halted_callback.action_controller", "send_file.action_controller", "redirect_to.action_controller", "send_data.action_controller", "unpermitted_parameters.action_controller", "write_fragment.action_controller", "read_fragment.action_controller", "exist_fragment?.action_controller", "expire_fragment.action_controller", "expire_page.action_controller", "write_page.action_controller", "logger.action_controller"]>, @can_publish=false>, #<ActiveSupport::Notifications::Fanout::Subscribers::Evented:0x007f88927399a8 @pattern="render_bind.active_record", @delegate=#<ActiveRecord::LogSubscriber:0x007f8892739db8 @queue_key="ActiveRecord::LogSubscriber-70112274665180", @patterns=["render_bind.active_record", "sql.active_record"], @odd=false>, @can_publish=false>, #<ActiveSupport::Notifications::Fanout::Subscribers::Evented:0x007f8892739728 @pattern="sql.active_record", @delegate=#<ActiveRecord::LogSubscriber:0x007f8892739db8 @queue_key="ActiveRecord::LogSubscriber-70112274665180", @patterns=["render_bind.active_record", "sql.active_record"], @odd=false>, @can_publish=false>, #<ActiveSupport::Notifications::Fanout::Subscribers::Evented:0x007f8892728680 @pattern="sql.active_record", @delegate=#<ActiveRecord::ExplainSubscriber:0x007f8892728798>, @can_publish=false>, #<ActiveSupport::Notifications::Fanout::Subscribers::Timed:0x007f88984017f8 @pattern="instantiation.active_record", @delegate=#<Proc:0x007f8898401848@/Users/joerafaniello/Code/manageiq/config/initializers/instantiation_listener.rb:1>, @can_publish=false>], @listeners_for=#<Concurrent::Map:0x007f8893701de0 entries=2 default_proc=nil>, @_mutex=#<Mutex:0x007f8893701d40>>>, @logger=#<VMDBLogger:0x007f8897ba0280 @progname=nil, @level=0, @default_formatter=#<Logger::Formatter:0x007f8897ba01e0 @datetime_format=nil>, @formatter=#<VMDBLogger::Formatter:0x007f8897ba0050 @datetime_format=nil>, @logdev=#<Logger::LogDevice:0x007f8897ba0190 @shift_size=1048576, @shift_age=0, @filename=#<Pathname:/Users/joerafaniello/Code/manageiq/log/development.log>, @dev=#<File:/Users/joerafaniello/Code/manageiq/log/development.log>, @mutex=#<Logger::LogDevice::LogDeviceMutex:0x007f8897ba0168 @mon_owner=nil, @mon_count=0, @mon_mutex=#<Mutex:0x007f8897ba0118>>>>, @config={:adapter=>"postgresql", :encoding=>"utf8", :username=>"root", :pool=>10, :checkout_timeout=>1, :wait_timeout=>5, :min_messages=>"notice", :database=>"vmdb_development", :host=>"localhost"}, @pool=#<ActiveRecord::ConnectionAdapters::ConnectionPool:0x007f889d2e4668 @mon_owner=nil, @mon_count=0, @mon_mutex=#<Mutex:0x007f889d2e4618>, @spec=#<ActiveRecord::ConnectionAdapters::ConnectionSpecification:0x007f889d2e4aa0 @name="MiqRegionRemote", @config={:adapter=>"postgresql", :encoding=>"utf8", :username=>"root", :pool=>10, :checkout_timeout=>1, :wait_timeout=>5, :min_messages=>"notice", :database=>"vmdb_development", :host=>"localhost"}, @adapter_method="postgresql_connection">, @checkout_timeout=1.0, @reaper=#<ActiveRecord::ConnectionAdapters::ConnectionPool::Reaper:0x007f889d2e45f0 @pool=#<ActiveRecord::ConnectionAdapters::ConnectionPool:0x007f889d2e4668 ...>, @frequency=nil>, @size=10, @thread_cached_conns=#<Concurrent::Map:0x007f889d2e45a0 entries=1 default_proc=nil>, @connections=[#<ActiveRecord::ConnectionAdapters::PostgreSQLAdapter:0x007f889d2c5cb8 ...>], @automatic_reconnect=true, @now_connecting=0, @new_cons_enabled=true, @available=#<ActiveRecord::ConnectionAdapters::ConnectionPool::ConnectionLeasingQueue:0x007f889d2e4500 @lock=#<ActiveRecord::ConnectionAdapters::ConnectionPool:0x007f889d2e4668 ...>, @cond=#<MonitorMixin::ConditionVariable:0x007f889d2e44d8 @monitor=#<ActiveRecord::ConnectionAdapters::ConnectionPool:0x007f889d2e4668 ...>, @cond=#<Thread::ConditionVariable:0x007f889d2e4488>>, @num_waiting=0, @queue=[]>>, @schema_cache=#<ActiveRecord::ConnectionAdapters::SchemaCache:0x007f889d2c5ba0 @connection=#<ActiveRecord::ConnectionAdapters::PostgreSQLAdapter:0x007f889d2c5cb8 ...>, @columns={}, @columns_hash={}, @primary_keys={}, @data_sources={}>, @quoted_table_names={}, @quoted_column_names={}, @visitor=#<Arel::Visitors::PostgreSQL:0x007f889d2c5a60 @dispatch={}, @connection=#<ActiveRecord::ConnectionAdapters::PostgreSQLAdapter:0x007f889d2c5cb8 ...>>, @prepared_statements=true, @connection_parameters={:user=>"root", :dbname=>"vmdb_development", :host=>"localhost"}, @local_tz="UTC", @table_alias_length=nil, @statements=#<ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::StatementPool:0x007f889d2c4480 @cache={}, @statement_limit=1000, @connection=#<PG::Connection:0x007f889d2c5948>, @counter=0>, @type_map=#<ActiveRecord::Type::HashLookupTypeMap:0x007f889d2bf3b8 @mapping={"int2"=>#<Proc:0x007f889d2bf110@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:514>, "int4"=>#<Proc:0x007f889d2bf070@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:514>, "int8"=>#<Proc:0x007f889d2bef58@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:514>, "oid"=>#<Proc:0x007f889d2bee68@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/hash_lookup_type_map.rb:5>, "float4"=>#<Proc:0x007f889d2bec88@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/type_map.rb:30>, "float8"=>#<Proc:0x007f889d2bea80@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/hash_lookup_type_map.rb:5>, "text"=>#<Proc:0x007f889d2be8a0@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/type_map.rb:30>, "varchar"=>#<Proc:0x007f889d2be7b0@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:514>, "char"=>#<Proc:0x007f889d2be670@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/hash_lookup_type_map.rb:5>, "name"=>#<Proc:0x007f889d2be4b8@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/hash_lookup_type_map.rb:5>, "bpchar"=>#<Proc:0x007f889d2be350@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/hash_lookup_type_map.rb:5>, "bool"=>#<Proc:0x007f889d2be1e8@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/type_map.rb:30>, "bit"=>#<Proc:0x007f889d2be0d0@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:514>, "varbit"=>#<Proc:0x007f889d2be030@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:514>, "timestamptz"=>#<Proc:0x007f889d2bdef0@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/hash_lookup_type_map.rb:5>, "date"=>#<Proc:0x007f889d2bddd8@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/type_map.rb:30>, "money"=>#<Proc:0x007f889d2bdc20@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/type_map.rb:30>, "bytea"=>#<Proc:0x007f889d2bda40@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/type_map.rb:30>, "point"=>#<Proc:0x007f889d2bd978@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/type_map.rb:30>, "hstore"=>#<Proc:0x007f889d2bd838@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/type_map.rb:30>, "json"=>#<Proc:0x007f889d2bd6f8@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/type_map.rb:30>, "jsonb"=>#<Proc:0x007f889d2bd608@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/type_map.rb:30>, "cidr"=>#<Proc:0x007f889d2bd400@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/type_map.rb:30>, "inet"=>#<Proc:0x007f889d2bd310@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/type_map.rb:30>, "uuid"=>#<Proc:0x007f889d2bd248@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/type_map.rb:30>, "xml"=>#<Proc:0x007f889d2bd068@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/type_map.rb:30>, "tsvector"=>#<Proc:0x007f889d2bcf00@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/type_map.rb:30>, "macaddr"=>#<Proc:0x007f889d2bcd98@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/type_map.rb:30>, "citext"=>#<Proc:0x007f889d2bcb90@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/type_map.rb:30>, "ltree"=>#<Proc:0x007f889d2bca28@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/type_map.rb:30>, "line"=>#<Proc:0x007f889d2bc960@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/type_map.rb:30>, "lseg"=>#<Proc:0x007f889d2bc870@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/type_map.rb:30>, "box"=>#<Proc:0x007f889d2bc690@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/type_map.rb:30>, "path"=>#<Proc:0x007f889d2bc550@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/type_map.rb:30>, "polygon"=>#<Proc:0x007f889d2bc488@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/type_map.rb:30>, "circle"=>#<Proc:0x007f889d2bc398@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/type_map.rb:30>, "interval"=>#<Proc:0x007f889d2bc1b8@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/hash_lookup_type_map.rb:5>, "time"=>#<Proc:0x007f889d2bc0c8@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:521>, "timestamp"=>#<Proc:0x007f889d2bce60@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:521>, "numeric"=>#<Proc:0x007f889d2bcfa0@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb:485>, 16=>#<Proc:0x007f889d286ba8@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/hash_lookup_type_map.rb:5>, 17=>#<Proc:0x007f889d286b58@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/hash_lookup_type_map.rb:5>, 18=>#<Proc:0x007f889d286ae0@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/hash_lookup_type_map.rb:5>, 19=>#<Proc:0x007f889d286a90@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/hash_lookup_type_map.rb:5>, 20=>#<Proc:0x007f889d286a40@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/hash_lookup_type_map.rb:5>, 21=>#<Proc:0x007f889d2869f0@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/hash_lookup_type_map.rb:5>, 23=>#<Proc:0x007f889d2869a0@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/hash_lookup_type_map.rb:5>, 25=>#<Proc:0x007f889d286950@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/hash_lookup_type_map.rb:5>, 26=>#<Proc:0x007f889d286900@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/hash_lookup_type_map.rb:5>, 114=>#<Proc:0x007f889d2868b0@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/hash_lookup_type_map.rb:5>, 142=>#<Proc:0x007f889d286860@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/hash_lookup_type_map.rb:5>, 600=>#<Proc:0x007f889d286810@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/hash_lookup_type_map.rb:5>, 601=>#<Proc:0x007f889d2867c0@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/hash_lookup_type_map.rb:5>, 602=>#<Proc:0x007f889d286770@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/hash_lookup_type_map.rb:5>, 603=>#<Proc:0x007f889d286720@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/hash_lookup_type_map.rb:5>, 604=>#<Proc:0x007f889d2866d0@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/hash_lookup_type_map.rb:5>, 628=>#<Proc:0x007f889d286658@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/hash_lookup_type_map.rb:5>, 700=>#<Proc:0x007f889d286608@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/hash_lookup_type_map.rb:5>, 701=>#<Proc:0x007f889d2865b8@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/hash_lookup_type_map.rb:5>, 718=>#<Proc:0x007f889d286568@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/hash_lookup_type_map.rb:5>, 790=>#<Proc:0x007f889d286518@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/hash_lookup_type_map.rb:5>, 829=>#<Proc:0x007f889d2864c8@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/hash_lookup_type_map.rb:5>, 869=>#<Proc:0x007f889d286478@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/hash_lookup_type_map.rb:5>, 650=>#<Proc:0x007f889d286428@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/hash_lookup_type_map.rb:5>, 1042=>#<Proc:0x007f889d2863d8@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/hash_lookup_type_map.rb:5>, 1043=>#<Proc:0x007f889d286388@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/hash_lookup_type_map.rb:5>, 1082=>#<Proc:0x007f889d286338@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/hash_lookup_type_map.rb:5>, 1083=>#<Proc:0x007f889d2862e8@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/hash_lookup_type_map.rb:5>, 1114=>#<Proc:0x007f889d286298@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/hash_lookup_type_map.rb:5>, 1184=>#<Proc:0x007f889d286220@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/hash_lookup_type_map.rb:5>, 1186=>#<Proc:0x007f889d2861d0@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/hash_lookup_type_map.rb:5>, 1560=>#<Proc:0x007f889d286180@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/hash_lookup_type_map.rb:5>, 1562=>#<Proc:0x007f889d286130@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/hash_lookup_type_map.rb:5>, 1700=>#<Proc:0x007f889d2860e0@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/hash_lookup_type_map.rb:5>, 2950=>#<Proc:0x007f889d286090@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/hash_lookup_type_map.rb:5>, 3614=>#<Proc:0x007f889d286040@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/hash_lookup_type_map.rb:5>, 3802=>#<Proc:0x007f889d285ff0@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/hash_lookup_type_map.rb:5>, 11866=>#<Proc:0x007f889d285a00@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/type_map.rb:30>, 11868=>#<Proc:0x007f889d2854d8@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/type_map.rb:30>, 11869=>#<Proc:0x007f889d284f88@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/type_map.rb:30>, 11873=>#<Proc:0x007f889d2847b8@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/type_map.rb:30>, 11874=>#<Proc:0x007f889d284240@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/type_map.rb:30>, 143=>#<Proc:0x007f889d2841a0@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb:95>, 199=>#<Proc:0x007f889d284100@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb:95>, 629=>#<Proc:0x007f889d284060@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb:95>, 719=>#<Proc:0x007f889d284678@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb:95>, 791=>#<Proc:0x007f889d284ee8@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb:95>, 1000=>#<Proc:0x007f889d286d60@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb:95>, 1001=>#<Proc:0x007f889d287968@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb:95>, 1002=>#<Proc:0x007f889d27ff88@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb:95>, 1003=>#<Proc:0x007f889d27fee8@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb:95>, 1005=>#<Proc:0x007f889d27fe48@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb:95>, 1007=>#<Proc:0x007f889d27fd58@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb:95>, 1009=>#<Proc:0x007f889d27fcb8@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb:95>, 1028=>#<Proc:0x007f889d27fc18@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb:95>, 1014=>#<Proc:0x007f889d27fb78@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb:95>, 1015=>#<Proc:0x007f889d27f9e8@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb:95>, 1016=>#<Proc:0x007f889d27f948@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb:95>, 1017=>#<Proc:0x007f889d27f8a8@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb:95>, 1018=>#<Proc:0x007f889d27f7b8@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb:95>, 1019=>#<Proc:0x007f889d27f718@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb:95>, 1020=>#<Proc:0x007f889d27f678@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb:95>, 1021=>#<Proc:0x007f889d27f5d8@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb:95>, 1022=>#<Proc:0x007f889d27f510@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb:95>, 1027=>#<Proc:0x007f889d27f420@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb:95>, 1040=>#<Proc:0x007f889d27f358@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb:95>, 1041=>#<Proc:0x007f889d27f2b8@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb:95>, 651=>#<Proc:0x007f889d27f218@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb:95>, 1115=>#<Proc:0x007f889d27f100@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb:95>, 1182=>#<Proc:0x007f889d27f060@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb:95>, 1183=>#<Proc:0x007f889d27efc0@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb:95>, 1185=>#<Proc:0x007f889d27eea8@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb:95>, 1187=>#<Proc:0x007f889d27ede0@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb:95>, 1231=>#<Proc:0x007f889d27ed40@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb:95>, 1561=>#<Proc:0x007f889d27eca0@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb:95>, 1563=>#<Proc:0x007f889d27ec00@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb:95>, 2951=>#<Proc:0x007f889d27eb60@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb:95>, 3643=>#<Proc:0x007f889d27eac0@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb:95>, 3807=>#<Proc:0x007f889d27ea20@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb:95>, 3904=>#<Proc:0x007f889d27e980@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb:95>, 3906=>#<Proc:0x007f889d27e8e0@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb:95>, 3908=>#<Proc:0x007f889d27e818@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb:95>, 3910=>#<Proc:0x007f889d27e778@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb:95>, 3912=>#<Proc:0x007f889d27e6b0@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb:95>, 3926=>#<Proc:0x007f889d27e610@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb:95>, 22=>#<Proc:0x007f889d27dff8@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/type_map.rb:30>, 30=>#<Proc:0x007f889d27d760@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/type_map.rb:30>, "xid"=>#<Proc:0x007f889d27d6c0@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/hash_lookup_type_map.rb:5>}, @cache=#<Concurrent::Map:0x007f889d2bf2c8 entries=0 default_proc=#<Proc:0x007f889d2bf278@/Users/joerafaniello/.gem/ruby/2.2.4/bundler/gems/rails-026e73d70e57/activerecord/lib/active_record/type/type_map.rb:8>>>, @use_insert_returning=true>
irb(main):013:0> ActiveRecord::Base.connection_handler.connection_pool_list.collect {|pool| pool.spec.name}
=> ["MiqRegionRemote"]
irb(main):014:0> ActiveRecord::Base.connection; nil
ActiveRecord::ConnectionNotEstablished: No connection pool with id primary found.
...
irb(main):015:0>
irb(main):001:0> MiqRegionRemote.connection_handler.connection_pool_list.size
=> 1
irb(main):002:0> MiqRegionRemote.connection.tables.size
PostgreSQLAdapter#log_after_checkout, connection_pool: size: 10, connections: 1, in use: 1, waiting_in_queue: 0
=> 295
irb(main):003:0> MiqRegionRemote.remove_connection
=> nil
irb(main):004:0> MiqRegionRemote.connection_handler.connection_pool_list.size
=> 1
irb(main):005:0> MiqRegionRemote.connection_handler.connection_pool_list.collect(&:connected?)
=> [true]
irb(main):006:0> MiqRegionRemote.connection; nil
=> nil
irb(main):007:0> MiqRegionRemote.connection_handler.connection_pool_list.collect(&:connected?)
=> [true]
irb(main):008:0> MiqRegionRemote.connection_handler.connection_pool_list.size
=> 1
irb(main):009:0> ActiveRecord::Base.connection_handler.connection_pool_list.size
=> 1
irb(main):010:0> ActiveRecord::Base.connection_handler.connection_pool_list.collect(&:connected?)
=> [true]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment