How to cascade delete a belongs_to relationship?

Oh ya ok, yeesh, I spent more time looking at your linked thread and less at your example above! My brain clearly switched around users and address_id up there (as happens to me often). Oh boy, sorry about that.

If address can belong to different parents then I’m actually not sure postgres has something like that out of the box. If an address can only have one parent then my brain is clearly not working super well today so I don’t know the answer right now :sweat_smile: If addresses are denormalized then this is one of those cases where I just go for an embedded schema due to simplicity. There was some interesting discussion on that recently which might make me reconsider but probably not :slight_smile:

Anyway, sorry I couldn’t be of more help!