Skip to content

Instantly share code, notes, and snippets.

@phlco
Created October 9, 2013 13:28
Show Gist options
  • Save phlco/6901278 to your computer and use it in GitHub Desktop.
Save phlco/6901278 to your computer and use it in GitHub Desktop.
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"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment