I have two models: user and group. There are many for many connected through the connection table. When I try to delete a user (or group), it causes this error:
** (Ecto.ConstraintError) when trying to delete a model:
* foreign_key: groups_user_id_key
What should I do to remove any parent model?
source
share