Member model #13159
Unanswered
Aleksey-Danchin
asked this question in
Help & Questions
Member model
#13159
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a
Member
model for several n:m associations.How to make cascade destroy for each assosiation? I can to change
constraints: true
, and addonDelete: "CASCADE"
, but it's setFOREIGN KEY ("memberableId") REFERENCES chats(id) ON UPDATE CASCADE ON DELETE CASCADE
. I.e it will set an association for only one model. But how to do it individually for each?Beta Was this translation helpful? Give feedback.
All reactions