create Rakefile and add auto_upgrade/auto_migrate