When migrating from the development environment to the production environment, the contents of seeds.rb are not carried over to the database of the production environment, so it is necessary to reflect seeds.rb in the database in the production environment.
cd app name
cd current
rails db:seed RAILS_ENV=production
that's all
It may be a difficult article to understand because it is a beginner + Qiita's first post, but I hope it helps.
Recommended Posts