API Reference ash_referential_actions v#0.1.0

Copy Markdown View Source

Modules

Declares referential actions for Ash relationships.

Applies AshReferentialActions semantics to soft destroys implemented by AshArchival.

Runtime guard added to every destroy action of a resource that declares restrict_has_many/has_one: the destroy (hard delete, or archive when the resource is archival) is rejected while live restricting records exist.

Runtime guard added to every create and update action of an resource that declares restrict or nilify: writing the foreign key is rejected unless the target exists and is live.

Introspection helpers for AshReferentialActions.

Applies AshReferentialActions semantics to PostgreSQL foreign keys.