method
disconnect
v7.0.0 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::ConnectionPool
disconnect(raise_on_acquisition_timeout = true)public
Disconnects all connections in the pool, and clears the pool.
Raises:
-
ActiveRecord::ExclusiveConnectionTimeoutError if unable to gain ownership of all connections in the pool within a timeout interval (default duration is spec.db_config.checkout_timeout * 2 seconds).