lib/departure.rb
# Make all connections in the connection pool to use PerconaAdapter
# instead of the current adapter.
Make all connections in the connection pool to use PerconaAdapter
instead of the current adapter.
Make all connections in the connection pool to use PerconaAdapter instead of the current adapter .
def reconnect_with_percona
        connection_config = ActiveRecord::Base
          .connection_config.merge(adapter: 'percona')
        Departure::ConnectionBase.establish_connection(connection_config)
      end
def reconnect_with_percona connection_config = ActiveRecord :: Base . connection_config . merge ( adapter : 'percona' ) Departure :: ConnectionBase . establish_connection ( connection_config ) end
Make all connections in the connection pool to use PerconaAdapter
instead of the current adapter.
Make all connections in the connection pool to use PerconaAdapter instead of the current adapter .