APIdock / Ruby on Rails
/
Browse About
method

verify!

v4.1.8 - Show latest stable - Class: ActiveRecord::ConnectionAdapters::AbstractAdapter
verify!(*ignored)
public

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.

# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 312
      def verify!(*ignored)
        reconnect! unless active?
      end

Related methods

  • Instance methods
  • active?
  • active_threadsafe?
  • adapter_name
  • case_insensitive_comparison
  • case_sensitive_modifier
  • clear_cache!
  • close
  • create_savepoint
  • current_savepoint_name
  • disable_extension
  • disable_referential_integrity
  • disconnect!
  • enable_extension
  • expire
  • extensions
  • index_algorithms
  • lease
  • open_transactions
  • prefetch_primary_key?
  • raw_connection
  • reconnect!
  • release_savepoint
  • requires_reloading?
  • reset!
  • rollback_to_savepoint
  • schema_cache=
  • schema_creation
  • substitute_at
  • supports_bulk_alter?
  • supports_count_distinct?
  • supports_ddl_transactions?
  • supports_explain?
  • supports_extensions?
  • supports_index_sort_order?
  • supports_migrations?
  • supports_partial_index?
  • supports_primary_key?
  • supports_savepoints?
  • supports_transaction_isolation?
  • unprepared_statement
  • unprepared_visitor
  • valid_type?
  • verify!
  • Class methods
  • new
  • type_cast_config_to_boolean
  • type_cast_config_to_integer
  • Protected methods
  • protectedlog
  • protectedtranslate_exception
  • protectedtranslate_exception_class
  • protectedwithout_prepared_statement?
APIdock API Documentation Browser

Improve developer experience using DX Core 4 metrics in Swarmia.

© 2026 APIdock