Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'pg'
- require "active_record"
- ActiveRecord::Base.establish_connection(
- :adapter=>"postgresql",
- :database =>"postgres",
- :username=>"postgres",
- :password=>"password",
- )
- class User < ActiveRecord::Base
- self.table_name = 'users'
- end
- p User.all
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement