adds rakefile and works with ActiveRecord migrations