Everything works except the delete. I get
delete from organizations
where id
= 3 - Cannot delete or update a parent row: a foreign key constraint fails
I feel like maybe I had something like this in a previous lesson, but can't find it. Is this something with how AdonisJS handles relationships in MySQL? Do I have to alter the code slightly to properly delete related modules?