Created
October 13, 2013 22:09
-
-
Save quackhouse/6967927 to your computer and use it in GitHub Desktop.
active_record_helpers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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