Skip to content

Instantly share code, notes, and snippets.

@phlco
phlco / activerecord.rb
Created October 9, 2013 13:28
active_record
require 'active_record'
ActiveRecord::Base.logger = Logger.new( STDOUT )
ActiveRecord::Base.establish_connection(
:adapter => "postgresql",
:host => "localhost",
:username => "philco",
:password => "",
:database => "amazon_db"