前提
ドットインストールにてRuby on Rails5 入門5を学習中、sqLite3を使用し
データを流し込む際に $rails db seed コマンドを入力した際に発生
実現したいこと
seeds 内容をデータベースへ流し込みたい
発生している問題・エラーメッセージ
エラーメッセージ
DEPRECATION WARNING: Passing the environment's name as a regular argument is deprecated and will be removed in the next Rails version. Please, use the -e option instead. (called from <top (required)> at /home/vagrant/rails_lessons/myapp/bin/rails:9)
config.eager_load is set to nil. Please update your config/environments/*.rb files accordingly:
- development - set it to false
- test - set it to false (unless you use a tool that preloads your test environment)
- production - set it to true
試したこと
下記ページを参考にコンフィグなどを追記した
https://qiita.com/shunwitter/items/09c4ec6e1cdd463ba5e5
補足情報(FW/ツールのバージョンなど)
ruby version
ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux]
Rails version
Rails 5.2.2
sqlite3 version
3.6.20
使用環境:mac air 2018
よろしくお願いいたします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/03/09 11:49