Method: ActiveRecord::ConnectionAdapters::AbstractAdapter#reset!

Defined in:
activerecord/lib/active_record/connection_adapters/abstract_adapter.rb

#reset!Object

Reset the state of this connection, directing the DBMS to clear transactions and other connection-related server-side state. Usually a database-dependent operation.

If a database driver or protocol does not support such a feature, implementors may alias this to #reconnect!. Otherwise, implementors should call super immediately after resetting the connection (and while still holding @lock).



726
727
728
729
730
# File 'activerecord/lib/active_record/connection_adapters/abstract_adapter.rb', line 726

def reset!
  clear_cache!(new_connection: true)
  reset_transaction
  attempt_configure_connection
end