Forum .LRN Q&A: Response to Forums and Notifications deleting threads problem in postgresql

Oh, and we're also getting the fk error. The quick fix is to add an "on delete cascade" for the response_id column. Unfortunately this propagates some existing ugliness. I'd like to see a better solution. Perhaps the author of the notifications package will chime in.