vigetlabs / sprig-reap

Sprig-Reap is a gem that allows you to output your application's data state to seed files.
MIT License
18 stars 18 forks source link

Somehow I got duplicated sprig_ids in the same yaml file!? #10

Open alexanderadam opened 10 years ago

alexanderadam commented 10 years ago

I am pretty sure that this isn't intended :wink:

h0tl33t commented 10 years ago

Have you seen this repeatedly? If so, could you elaborate on the circumstances? It seems as if this happens when sprig-reap writes to a non-empty file that already contains some sprig records (based on the snippets in #11). The more information you can provide, the better. Thanks!

alexanderadam commented 10 years ago

Yes, happend everytime is used sprig-reap and yes: I had just cases with non-empty files.

The issues I created today, all happened when I tried to create sprig seeds out of a kuhsaft (it will called qbrick in the nearer future) project.

I tried a

  $ rake db:seed:reap MODELS=Kuhsaft::Page,Kuhsaft::Brick,Kuhsaft::BrickTypes,Kuhsaft::Asset IGNORED_ATTRS=created_at,updated_at

But I have no time for now for a more complete example for the issues. Sorry. I hope that I will have the time for it in the nearer future but perhaps the infos can already help a bit(?). :wink:

h0tl33t commented 10 years ago

I'll see if I can figure out what's causing it. Thanks!