thoughtbot/kumade — Issue #83: Ability to rake db:seed after db:migrate
Author: dimroc
Created: 2011-12-22 20:13:36+00:00
State: open

Hi All,
it would be great if we could run rake db:seed after migration but before heroku restart for projects that run the seed file on every deploy.

Plug into kumade somewhere here:

```ruby
module Kumade
class Heroku
...
def sync
git.create(DEPLOY_BRANCH)
git.push("#{DEPLOY_BRANCH}:master", Kumade.configuration.environment, true)
end

def migrate_database
heroku("rake db:migrate") unless Kumade.configuration.pretending?
Kumade.configuration.outputter.success("Migrated #{Kumade.configuration.environment}")
end

def restart_app
unless Kumade.configuration.pretending?
command_line = CommandLine.new("bundle exec heroku restart --remote #{Kumade.configuration.environment}")
command_line.run_or_error("Failed to restart #{Kumade.configuration.environment}")
end
Kumade.configuration.outputter.success("Restarted #{Kumade.configuration.environment}")
end
```

Thanks