0
0

More than 1 year has passed since last update.

初学者必見!本番環境だけNoMethodError undefined method

Last updated at Posted at 2021-10-05

スクリーンショット 2021-10-05 9.48.40.png

このように本番環境だけ、undefined methodエラーがでた。

trades_countカラムをローカルで追加したので、

本番環境のターミナルで

 rails db:migrate RAILS_ENV=production

を実行すれば本番環境でカラムが追加されるので、
エラーが解決できる。

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