Rails5.1.3でWebアプリケーション制作の勉強をしています。
productionモードで起動してみようとしましたが、「Choiceテーブルのid=1が無いです。」のようなエラーが出てしまいました。
開発環境では $ rails s で普通に起動出来ているのですが、解決法補が分からずに困っていますので
どなたか解決方法を教えていただけないでしょうか?宜しくお願いします。
エラー内容は以下になります。
[vagrant@localhost chibi]$ rails s -e production => Booting Puma => Rails 5.1.3 application starting in production on http://0.0.0.0:3000 => Run `rails server -h` for more startup options Exiting /home/vagrant/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activerecord-5.1.3/lib/active_record/core.rb:189:in `find': Couldn't find Choice with 'id'=1 (ActiveRecord::RecordNotFound)
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。