class ActiveRecord::ConnectionAdapters::ConnectionPool

def connection

def connection
  _fibered_mutex.synchronize do
    @thread_cached_conns[connection_cache_key(Thread.current)] ||= checkout
  end
end