Ash.Changeset.for_destroy
You're seeing just the function
for_destroy
, go back to Ash.Changeset module for more information.
Constructs a changeset for a given destroy action, and validates it.
Opts
:actor
- set the actor, which can be used in anyAsh.Resource.Change
s configured on the action. (in thecontext
argument):tenant
- set the tenant on the changeset
Anything that is modified prior to for_destroy/4
is validated against the rules of the action, while anything after it is not.
Once a changeset has been validated by for_destroy/4
, it isn't validated again in the action.
New changes added are validated individually, though. This allows you to create a changeset according
to a given action, and then add custom changes if necessary.