method

mysql2_connection

mysql2_connection(config)
public

Establishes a connection to the database that’s used by all Active Record objects.