Skip to content

Instantly share code, notes, and snippets.

@oki
Created November 24, 2008 15:00
Show Gist options
  • Select an option

  • Save oki/28485 to your computer and use it in GitHub Desktop.

Select an option

Save oki/28485 to your computer and use it in GitHub Desktop.
#!/bin/env ruby
require 'rubygems'
require 'activerecord'
# require 'activesupport'
require 'pp'
require 'logger'
ActiveRecord::Base.establish_connection(
:adapter => "mysql",
:host => "fobar",
:database => "fobase",
:username => "bla",
:password => "bl4h"
)
# logs to stdout
# ActiveRecord::Base.logger = Logger.new(STDOUT)
class Customer < ActiveRecord::Base
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment