seed_dump
seed_dump copied to clipboard
Doesn't handle foreign keys.
Needs to delay emitting any record that has a foreign key to another one which hasn't yet been dumped. In the case of circular associations this means it may need to insert multiple separate batches of the same record type.
True, this is affecting me too, would be nice to see it solved.
For googlers The temporary fix is to copy-paste the blocks into an order so that no records depend on a record that doesn't exist yet. Unfortunately, circular associations don't seem to work whatsoever at this time
Copy-pasting blocks around only works if you've never deleted any records from the database. Otherwise, the id's of items created after any deletes will no longer be the same after seeding (since seeding it just auto-incrementing the id's).
Pull request submitted.
I'm also looking for this support. Thanks.
+1