vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb
def clear_active_connections!
        @connection_pools.each_value do |pool|
          pool.release_connection
          pool.clear_stale_cached_connections!
        end
      end
# Returns any connections in use by the current thread back to the pool,
# and also returns connections to the pool cached by threads that are no
# longer alive.
Returns any connections in use by the current thread back to the pool,
and also returns connections to the pool cached by threads that are no
longer alive.
Returns any connections in use by the current thread back to the pool and also returns connections to the pool cached by threads that are no longer alive .
def clear_active_connections!
        @connection_pools.each_value do |pool|
          pool.release_connection
          pool.clear_stale_cached_connections!
        end
      end
def clear_active_connections! @connection_pools . each_value do | pool | pool . release_connection pool . clear_stale_cached_connections! end end
Returns any connections in use by the current thread back to the pool,
and also returns connections to the pool cached by threads that are no
longer alive.
Returns any connections in use by the current thread back to the pool and also returns connections to the pool cached by threads that are no longer alive .