instance method
verify!
Ruby on Rails 5.2.8.1
Signature
verify!()
Checks whether the connection to the database is still active (i.e. not stale). This is done under the hood by calling #active?. If the connection is no longer active, then this method will reconnect to the database.
Source
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 436
def verify!
reconnect! unless active?
end
Defined in activerecord/lib/active_record/connection_adapters/abstract_adapter.rb line 436
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::AbstractAdapter