Enumeration Members

Enumeration Members

all: "all"

Pre-deletes every cascading model in JS before deleting the current instance. Useful if you need to trigger the JS hooks for cascading deletes, or if foreign key constraints are disabled in the database.

This is the least efficient option.

none: "none"

Lets the database delete the cascading instances, does nothing in JS. Most efficient, but not compatible with soft deletions.

paranoid: "paranoid"

Only replicates the behavior of ON DELETE in JS for soft deletions, otherwise is equivalent to "none".