http://exposinggotchas.blogspot.ca/2011/02/activerecord-migrations-without-rails.html