Skip to content

Instantly share code, notes, and snippets.

@crywolfe
Forked from phlco/activerecord.rb
Last active August 29, 2015 13:57
Show Gist options
  • Save crywolfe/9609479 to your computer and use it in GitHub Desktop.
Save crywolfe/9609479 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 => "crywolfe",
:password => "",
:database => "db_"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment