I have a Ruby on Rails application. I changed my database and I want to deploy it to heroku.
How can I delete previous migrations on heroku and migrate my new database design?
I test using this code: heroku run db:migrate, but when I want to create a object from my new database design I got this error: We're sorry, but something went wrong
However, when I refresh my page it was created! What is wrong with it?
Are you sure it’s your database? Try running
heroku logs -tand running the request again. Then check your log and post your results. It might not even be a database problem.To erase your database run
or
then run
If all your migrations are correct then you should not experience the same problem.