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