I got an error when deploying to heroku. We are sorry ...
When I checked the logs with heroku logs --tail --app [app name], I got an error like m below. This seems to be an error in a table
ActionView::Template::Error (Mysql2::Error: Table 'heroku----' doesn't exist):
Upon examination, the following three possible causes for this error statement were (there may be others):
In the case of rails 5.0 and 5.2, it seems that such an error may occur. There seems to be a problem in terms of how to write the migration file and the type. I haven't examined it in detail in 6.0, so please check if it applies to you.
Check rails db: migrate: status in your terminal If there is a no file, you have to delete it (I'll show you how to do it in another article)
heroku run rails db:migrate
This fixed it.
That was all
Recommended Posts