Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'active_record'
- ActiveRecord::Base.establish_connection ({
- :adapter => "mysql2",
- :host => "localhost",
- :username => "root",
- :password => "",
- :database => ""})
- class TableName < ActiveRecord::Base
- end
- list_all = TableName.all
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement