instance method
disconnect!
Ruby on Rails 6.0.6
Since v3.1.12Signature
disconnect!()
Disconnects from the database if already connected. Otherwise, this method does nothing.
Source
# File activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb, line 114
def disconnect!
super
@connection.close
end
Defined in activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb line 114
· View on GitHub
· Improve this page
· Find usages on GitHub