Skip to content

Add foreign key constraints to model changsets #82

Open
@tuesmiddt

Description

@tuesmiddt

Where models have foreign keys that cannot be null, the tables should have appropriate constraints and
changesets should also validate this with Ecto.Changeset.foreign_key_constraint/3.

See here for difference with Ecto.Changeset.assoc_constraint/3.

Todo:

  • Update changesets
  • Add migrations

Metadata

Metadata

Assignees

Labels

EnhancementNew feature or requestminorless important than important but more than nice-to-have

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions