Skip to content

Instantly share code, notes, and snippets.

@itochan
Created July 2, 2011 13:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save itochan/1060273 to your computer and use it in GitHub Desktop.
Save itochan/1060273 to your computer and use it in GitHub Desktop.
# -*- coding: utf-8 -*-
require "active_record"
require "pp"
ActiveRecord::Base.establish_connection(
:adapter => 'mysql2',
:host => 'ito315.com',
:username => 'root',
:password => 'foobar',
:database => 'mousho'
)
class User < ActiveRecord::Base
end
pp User.find(:all)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment