Skip to content

Instantly share code, notes, and snippets.

@quackhouse
Created October 13, 2013 22:09
Show Gist options
  • Save quackhouse/6967927 to your computer and use it in GitHub Desktop.
Save quackhouse/6967927 to your computer and use it in GitHub Desktop.
active_record_helpers
before do
ActiveRecord::Base.logger = Logger.new( STDOUT )
ActiveRecord::Base.establish_connection(
:adapter => "postgresql",
:host => "localhost",
:username => "Ducky",
:password => "",
:database => "instagram_db"
)
end
after do
ActiveRecord::Base.connection.close
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment