What is the difference between “rake db:seed” and rake db:fixtures:load”

rake db:seed loads the data from db/seeds.rb into the database. This is generally used for development and production databases. It’s permanent data that you use to start an empty application. More information here.

rake db:fixtures:load loads the test fixtures into the test database. This is temporary data used solely by the tests. You can think of fixtures as sample data.

Leave a Comment