I have group memberships modeled in a HMT relationship. My problem is,
a member is removed from a group, the relationship is not deleted, but
userid is merely set to 0.
Which makes me realize that I haven’t declared :dependent => :destroy in
of my relationships:
Is this possible with HTM? Sure, I could have the relationship destroyed
either of the two objects are destroyed. But what I also need is for the
relationship to be destroyed if either of the object leave it. There
a common solution for this?