Advertisement
Guest User

Untitled

a guest
Jul 31st, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. require 'active_record'
  2. ActiveRecord::Base.establish_connection(
  3. :adapter => "mysql" ,
  4. :host => "localhost" ,
  5. :username => "ogredude" ,
  6. :password => "secret" ,
  7. :database => "foo"
  8. )
  9. class Widget < ActiveRecord::Base
  10.  
  11. end
  12.  
  13. ActiveRecord::Base.logger = Logger.new(STDOUT)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement