I am building a demo, and I want to make it very easy for a non-technical person to set up and run the demo. I have built a seeds.rb file with lots of demo data in it. I w
I prefer the classic method:
bundle exec rails db:seed
But I guess, that you can also call Rails.application.load_seed as mentioned.
Rails.application.load_seed
You can call Rails.application.load_seed. That's all rake db:seed does.
rake db:seed