Create Useful Seed Data for Development
Explore how to create valuable seed data for Rails development by using Factory Bot and Faker. Understand the importance of idempotent seeds, scoped to development only, to facilitate manual UI testing and consistent app states.
We'll cover the following...
We'll cover the following...
Add seed data
Rails’ documentation is unclear on the purpose of seed data, but it’s commonly used to seed development data, and that’s how we view it as well. Because we have set up Factory Bot to create realistic, yet fake data for tests, we can use that for our seed data, too.
There are a few considerations for seed ...