Skip to content

Instantly share code, notes, and snippets.

@JayK31
JayK31 / active_record.rb
Created March 18, 2014 16:29
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