# File lib/active_record/connection_adapters/abstract/connection_pool.rb, line 337 def establish_connection(name, spec) @connection_pools[spec] ||= ConnectionAdapters::ConnectionPool.new(spec) @class_to_pool[name] = @connection_pools[spec] end