Skip to content

Instantly share code, notes, and snippets.

@davidmccoy
Forked from phlco/activerecord.rb
Created March 19, 2014 02:41
Show Gist options
  • Save davidmccoy/9634568 to your computer and use it in GitHub Desktop.
Save davidmccoy/9634568 to your computer and use it in GitHub Desktop.
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