class ActiveRecord::ConnectionAdapters::SQLite3Adapter

def disconnect!

method does nothing.
Disconnects from the database if already connected. Otherwise, this
def disconnect!
  super
  @connection.close rescue nil
end