Add Rakefile
Fixes for migrations