well I spent some time on this and this was the only way to force rails to trigger callbacks on join model which we need, join models are removed without instantiation if you just rely on destroy of usergroup_members only

so maybe adding a comment would help? (ofc to all other has_many through with dependent key)