Skip to content

Instantly share code, notes, and snippets.

View aaronyo's full-sized avatar

Aaron Boyd aaronyo

  • Nomic
  • Bend, Oregon
View GitHub Profile
@aaronyo
aaronyo / databases.rake
Last active December 19, 2015 00:29 — forked from wbailey/databases.rake
Standalone migrations for postgres with foreign key support.
require 'yaml'
require 'logger'
require 'active_record'
require 'foreigner'
namespace :db do
def create_database config
options = {:charset => 'utf8'}
create_db = lambda do |config|