method

configure_connection

rails latest stable - Class: ActiveRecord::ConnectionAdapters::AbstractAdapter
configure_connection()
private

Perform any necessary initialization upon the newly-established @raw_connection – this is the place to modify the adapter’s connection settings, run queries to configure any application-global “session” variables, etc.

Implementations may assume this method will only be called while holding @lock (or from #initialize).