APIdock / Ruby on Rails
/
Browse About
method

connection

v7.2.3 - Show latest stable - Class: ActiveRecord::ConnectionAdapters::ConnectionPool
connection()
public

No documentation available.

# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb, line 328
      def connection
        ActiveRecord.deprecator.warn(<<~MSG)
          ActiveRecord::ConnectionAdapters::ConnectionPool#connection is deprecated
          and will be removed in Rails 8.0. Use #lease_connection instead.
        MSG
        lease_connection
      end

Related methods

  • Instance methods
  • active_connection
  • active_connection?
  • checkin
  • checkout
  • clear_reloadable_connections
  • clear_reloadable_connections!
  • connected?
  • connection
  • connection_class
  • connections
  • discard!
  • discarded?
  • disconnect
  • disconnect!
  • flush
  • flush!
  • inspect
  • internal_metadata
  • lease_connection
  • migration_context
  • migrations_paths
  • new_connection
  • num_waiting_in_queue
  • permanent_lease?
  • pin_connection!
  • reap
  • release_connection
  • remove
  • schedule_query
  • schema_cache
  • schema_migration
  • schema_reflection=
  • stat
  • unpin_connection!
  • with_connection
  • Class methods
  • install_executor_hooks
  • new
  • Private methods
  • privateacquire_connection
  • privateadopt_connection
  • privateattempt_to_checkout_all_existing_connections
  • privatebuild_async_executor
  • privatebulk_make_new_connections
  • privatecheckout_and_verify
  • privatecheckout_for_exclusive_access
  • privatecheckout_new_connection
  • privateconnection_lease
  • privaterelease
  • privateremove_connection_from_thread_cache
  • privatetry_to_checkout_new_connection
  • privatewith_exclusively_acquired_all_connections
  • privatewith_new_connections_blocked
APIdock API Documentation Browser

© 2026 APIdock