Guest User

Untitled

a guest
May 29th, 2018
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. class Post < ActiveRecord::Base
  2.  
  3. # lets manually connect to the proper db
  4. ActiveRecord::Base.establish_connection(
  5. :adapter => "mysql",
  6. :host => "localhost",
  7. :username => "root",
  8. :password => "",
  9. :database => "foobar"
  10. )
  11.  
  12. end
Add Comment
Please, Sign In to add comment