When importing or exporting Databases using Taps in heroku , is it necessary that we need to perform heroku run rake db:migrate command?what is the difference between heroku push and heroku migrate? can anyone clear me with this?,thank you. . .
When importing or exporting Databases using Taps in heroku , is it necessary that
Share
The heroku docs on this are pretty good https://devcenter.heroku.com/articles/taps
but I can see that its not totally clear whether you need to run the migration.
You are essentially taking your local database and pushing it up as a complete replacement, and it will create the tables and fill them, so running the migration against heroku is not necessary.
I was helping someone launch their app minutes before a major demo, and we had issues where running the migrations on heroku was failing (code/dependencies on his part), so reverting to db:push allowed us to get the db structure and local data up in time for the demo.
Give it a try