class ActiveRecord::ConnectionAdapters::ConnectionPool

def clear_reloadable_connections!

connection owning threads.
clears the cache and reloads connections without any regard for other
spec.db_config.checkout_timeout * 2 seconds), then the pool forcefully
do so within a timeout interval (default duration is
The pool first tries to gain ownership of all connections. If unable to

require reloading.
Clears the cache which maps classes and re-connects connections that
def clear_reloadable_connections!
  clear_reloadable_connections(false)
end