metabahn/farmer_john — Issue #10: Associated Objects Duplicated
Author: bryanp
Created: 2011-10-28 20:40:51+00:00
State: open

I have this dataset:

```ruby
dataset do
User.constrain(:email).seed({
:email => 'john@gmail.com',
:password => 'test',
:password_confirmation => 'test',
:name => 'John Doe',
:statuses => [0]
})

Status.seed({
:text => 'foo'
})
end
```

A status is created each time. I understand why (the status isn't constrained), but am trying to think of a way around this. In this particular case I don't want a new status created for this user every time. Is there a way to constrain the status seed so that it's only created once here?