method

checkout_for_maintenance

rails latest stable - Class: ActiveRecord::ConnectionAdapters::ConnectionPool

Method not available on this version

This method is only available on newer versions. The first available version (v8.1.1) is shown here.

checkout_for_maintenance(conn)
private

Directly check a specific connection out of the pool. Skips callbacks.

The connection must later either #return_from_maintenance or #remove_from_maintenance, or the pool will hang.