According to http://www.yesodweb.com/blog/2010/07/database-migrations a DeleteCascade
typeclass was added a few years ago. I can only assume that this is meant to be added to the models. After setting up my models config like this:
Field
...
foreignId ForeignId DeleteCascade
my application compiles fine. but the DB schema is unchanged, and the delete is not cascaded by the application either. Should I just (shudder) do it manually? Is there a better way?
I'm using the Yesod scaffold (Application.hs, Foundation.hs, Settings.hs, ...)