Skip to content
Nicholas Herson edited this page Nov 4, 2013 · 3 revisions

There are two possible scenarios when you are pushing to Heroku.

  1. The database is exactly the same
  2. It's not

If you are in option 2, then follow these steps to save you some frustration:

Drop the Tables

  • heroku pg:reset SHARED_DATABASE --confirm NAME_OF_THE_APP

Recreate the database:

  • heroku run rake db:migrate

Seed the database:

  • heroku run rake db:seed

Restart the service

  • heroku restart

If you are in option 1, then just push up the new code, no worries.

Clone this wiki locally