Skip to content

Instantly share code, notes, and snippets.

@jney
Created March 19, 2009 11:14
Show Gist options
  • Save jney/81770 to your computer and use it in GitHub Desktop.
Save jney/81770 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'active_record'
ActiveRecord::Base.establish_connection(
:adapter => 'mysql',
:database => 'database',
:username => 'username',
:password => 'password',
:host => 'localhost'
:encoding => "utf8"
)
class User < ActiveRecord::Base
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment