instance method
disconnect!
Ruby on Rails 8.1.2
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 253
def disconnect!
super
@raw_connection&.close rescue nil
@raw_connection = nil
end
Defined in activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb line 253
· View on GitHub
· Improve this page
· Find usages on GitHub