author avatar

syedsibtain

Thu May 09 2024

In a Rails application, the seeds.rb file is used to populate the database with initial data. This file typically resides in the db directory of our Rails application. The data added through the seeds.rb file is often used for testing or for providing initial data in a fresh installation of the application.

After defining the data in the seeds.rb file, we can populate the database by running the rails db:seed
#rails #database