Skip to content

Instantly share code, notes, and snippets.

@MichaelDrogalis
Created October 20, 2012 03:06
Show Gist options
  • Save MichaelDrogalis/3921862 to your computer and use it in GitHub Desktop.
Save MichaelDrogalis/3921862 to your computer and use it in GitHub Desktop.
Draft for database seeding using Zombie
(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