Skip to content

Instantly share code, notes, and snippets.

@JayK31
Created March 18, 2014 16:29
Show Gist options
  • Save JayK31/9623716 to your computer and use it in GitHub Desktop.
Save JayK31/9623716 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: 'jay',
database: 'food_db',
port: 5432
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment