method
disconnect
v5.0.0.1 -
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.config[:checkout_timeout] * 2 seconds).