vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb
# Disconnects all connections in the pool, and clears the pool.
Disconnects all connections in the pool, and clears the pool.
Disconnects all connections in the pool and clears the pool .
def disconnect!
        @reserved_connections.each do |name,conn|
          checkin conn
        end
        @reserved_connections = {}
        @connections.each do |conn|
          conn.disconnect!
        end
        @connections = []
      end
def disconnect! @reserved_connections . each do | name , conn | checkin conn end @reserved_connections = { } @connections . each do | conn | conn . disconnect! end @connections = [ ] end
Disconnects all connections in the pool, and clears the pool.
Disconnects all connections in the pool and clears the pool .