AshVersioned. Verifiers. VerifyVersionedRelationships
(ash_versioned v0.2.0)
Copy Markdown
Verifies that every belongs_to_versioned, has_one_versioned, and
has_many_versioned relationship points to an AshVersioned.Resource, and that every
belongs_to_versioned joins on the destination's identity attribute.
When through is used, every relationship in that path that is an
AshVersioned.Resource must be a versioned relationship. A plain relationship to
a versioned resource matches every version, so aggregates over the path would count each
related record once per version.