Aryan PrajapatKnowledge Contributor
What is the role of the seeds.rb file in Rails?
What is the role of the seeds.rb file in Rails?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Questions | Answers | Discussions | Knowledge sharing | Communities & more.
Database Initialization: Seeds.rb in Rails is a file used for initializing the database with default or sample data.
Location: It is typically located in the db directory of a Rails project.
Data Population: The file contains Ruby code to create and populate records in the database tables.