yesodweb/persistent — Issue #32: Migration fails if entities are not topologically sorted
Author: meteficha
Created: 2011-12-27 17:20:12+00:00
State: open

If you have

```
Foo
ref BarId

Bar
```

then persistent's migration fails because it first tries to create Foo and then Bar.

For this bug it suffices to do a topological sort inside the migration code.