Advertisement
Guest User

Untitled

a guest
Oct 24th, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. require 'pg'
  2. require "active_record"
  3.  
  4. ActiveRecord::Base.establish_connection(
  5. :adapter=>"postgresql",
  6. :database =>"postgres",
  7. :username=>"postgres",
  8. :password=>"password",
  9. )
  10.  
  11. class User < ActiveRecord::Base
  12. self.table_name = 'users'
  13. end
  14.  
  15. p User.all
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement