Skip to content

Instantly share code, notes, and snippets.

@MichaelDrogalis
Created November 6, 2012 04:06
Show Gist options
  • Save MichaelDrogalis/4022477 to your computer and use it in GitHub Desktop.
Save MichaelDrogalis/4022477 to your computer and use it in GitHub Desktop.
(deftable pets
{:database db :table :pets :policy :clean-slate}
(seed (inherit :id)
(randomized :nickname)))
(deftable people
{:database db :table :people :fk [pets] :policy :clean-slate :n 50}
(seed (randomized :name {:fk {:pets :id}})
(randomized :number)))
(seed-table people)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment