My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more
Mike's Blog | Seeding your database in Rails

Mike's Blog | Seeding your database in Rails

Mike Chilson's photo
Mike Chilson
·May 10, 2017

When writing applications in Rails, we often have the need to populate small "reference" tables (like credit card types, colors, dog breeds, etc) used in form dropdowns, test data when developing or inserting specific records into the database at deployment time.