paulelliott/fabrication — Issue #75: Sequences not working?
Author: mklappstuhl
Created: 2011-12-07 13:24:13+00:00
State: open

Hey again.

I guess the fault is on my side but I don't know where else to ask:
Here is the code:

```ruby
Fabricator(:ad) do
# If I use Fabricate.sequence(:ad) { |i| "test_ad_#{i}" }
# on the rails console it works perfectly.
# Using it in a fabricator like below does not unfortunately.
name { sequence(:ads) { |i| "test_ad_#{i}" } }
end
```

When using Fabricate(:ad) two times on the console it'll throw an error:

```
ActiveRecord::RecordInvalid: Database entry invalid: Name is already taken
```

PS: Are there any other places to ask for help than via Github issues?