Skip to content

Instantly share code, notes, and snippets.

@telagraphic
Created November 13, 2012 01:55
Show Gist options
  • Save telagraphic/4063436 to your computer and use it in GitHub Desktop.
Save telagraphic/4063436 to your computer and use it in GitHub Desktop.
require_relative 'connect'
require 'active_record'
require 'yaml'
puts "Current version:", ActiveRecord::Migrator.current_version
ActiveRecord::Migration.verbose = true
ActiveRecord::Migrator.migrate "migrations/", ARGV[0] ? ARGV[0].to_i : nil
require 'connect'
class WeedStrain < ActiveRecord::Base
end
development:
adapter: postgresql
database: weed_types
username: nicko
host: localhost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment