method
mysql2_connection
rails latest stable - Class:
ActiveRecord::ConnectionHandling
mysql2_connection(config)public
Establishes a connection to the database that’s used by all Active Record objects.
mysql2_connection(config)Establishes a connection to the database that’s used by all Active Record objects.