APIdock / Ruby on Rails
/
Browse About
method

verify!

v4.0.2 - 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 369
      def verify!(*ignored)
        reconnect! unless active?
      end

Related methods

  • Instance methods
  • active?
  • adapter_name
  • case_insensitive_comparison
  • case_sensitive_modifier
  • clear_cache!
  • close
  • create_savepoint
  • current_savepoint_name
  • decrement_open_transactions
  • disable_extension
  • disable_referential_integrity
  • disconnect!
  • enable_extension
  • expire
  • extensions
  • increment_open_transactions
  • 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?
  • transaction_joinable=
  • 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
  • protectedwithout_prepared_statement?
APIdock API Documentation Browser

© 2026 APIdock