Skip to content

Instantly share code, notes, and snippets.

@phlegx
Created November 14, 2012 13:09
Show Gist options
  • Save phlegx/4072002 to your computer and use it in GitHub Desktop.
Save phlegx/4072002 to your computer and use it in GitHub Desktop.
ActiveRecord::Base.establish_connection(
{ :adapter => 'mysql2',
:database => 'some_database',
:host => 'localhost',
:username => 'root',
:password => "" }
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment