Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chore: Automate Setting New UUID's When Running the Seeds Task
Because: * It is frustrating and time consuming having to manually generate uuids and then copy and paste them into the seed files. * To get a random uuid automatically created for you, you just need to give any identifier_uuid attribute the value of "create_uuid" and then run the seeds as normal. This commit. * Adds a seed_uuids generator which will look for any "create_uuid" strings within the fixtures files and replace any instances with a new random uuid. * New generator can be invoked form the command line manually with `bin/rails g seed_uuids`. * Generator is invoked during the seed task everything is done with one command instead of needing to manually run the uuid generator first and then and then the seeds task.
- Loading branch information