For has_*
we have no_assoc_constraint
. It works fine and throw a changeset error
when we try to delete a parent and the child still exists. Is there any function which will work for many to many
. so if try to delete a parent and its throw foreign key error?
Thanks