Created
October 20, 2012 03:06
-
-
Save MichaelDrogalis/3921862 to your computer and use it in GitHub Desktop.
Draft for database seeding using Zombie
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(generate-seeds | |
{:database :simulation :table :jobs} | |
(make-seed (has-a-random :priority) | |
(has-a-random :status) | |
(has-a-random :name) | |
(n-instances 500)) | |
(make-seed (randomized :priority :status :name) ;;; Short-hand for the former form | |
(n-instances 500)) | |
(make-seed (has-a-random :priority) | |
(has-a :status :error) | |
(has-some :error-details) | |
(n-instances 150))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment