Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Post < ActiveRecord::Base
- # lets manually connect to the proper db
- ActiveRecord::Base.establish_connection(
- :adapter => "mysql",
- :host => "localhost",
- :username => "root",
- :password => "",
- :database => "foobar"
- )
- end
Add Comment
Please, Sign In to add comment