instance method
new_connection
Ruby on Rails 5.2.8.1
Since v2.2.3 Last seen in v7.1.6 PrivateSignature
new_connection()
No documentation comment.
Source
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb, line 829
def new_connection
Base.send(spec.adapter_method, spec.config).tap do |conn|
conn.schema_cache = schema_cache.dup if schema_cache
end
end
Defined in activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb line 829
· View on GitHub
· Improve this page
· Find usages on GitHub