Due to an oversight on our part in the upgrade procedures (sorry!) there are some additional steps required to upgrade from version 0.1.0 or version 0.2.0. The issue is that rails migrations (tasks that update the database schema) are not getting run automatically. As of v0.2.1 any new deployment will be configured to run these migrations automatically.
To make sure migrations get run after each deploy, follow these steps.
- Go into the 'Settings' tab for the klaxon app on dashboard.heroku.com.
- In the 'Buildpacks' section click on 'Add Buildpack'
- Enter
https://github.com/gunpowderlabs/buildpack-ruby-rake-deploy-tasks
into the text box that pops up and click 'Save Changes'. - In the 'Config Variables' section click on 'Reveal Config Vars'.
- In the empty text boxes at the bottom, enter
DEPLOY_TASKS
on the left anddb:migrate
on the right. Click 'Add'. - To actually run the migration trigger a manual deploy from the bottom of the 'Deploy' tab by clicking 'Deploy Branch'. The line
should appear in the build log. If you have pending migrations, this will be followed by the log output for them as well.
ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
- That's it, you should be all set going forward.