0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

heroku logs --tail --app<アプリ名>を入力した際、ActionView::Template::Error (Mysql2::Error: Table --- doesn't exist):が出てきた時の対処法。

Last updated at Posted at 2021-04-10

エラー文を入力して検索。様々な原因があるようですが、私の場合はmigration fileに 
--NO FILE--が存在することが原因でした。

rails db:rollbackで該当のファイルを差し戻し、手動で消去。rails db:migrateコマンドを実行。

statusコマンドを実行し存在しないことを確認。本番環境に適応させるために、heroku run rails db:migrateを実行。再びheroku logs --tail --app <アプリ名>を実行。エラー分が消えていることを確認。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?