Advertisement
Guest User

Untitled

a guest
Jun 27th, 2016
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. require 'active_record'
  2.  
  3. ActiveRecord::Base.establish_connection ({
  4. :adapter => "mysql2",
  5. :host => "localhost",
  6. :username => "root",
  7. :password => "",
  8. :database => ""})
  9.  
  10. class TableName < ActiveRecord::Base
  11. end
  12.  
  13. list_all = TableName.all
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement