go: update atlas and test global-unique-id migration (#2661)

This commit is contained in:
Ariel Mashraki
2022-06-18 21:50:44 +03:00
committed by GitHub
parent 7017cbc898
commit 98d00a35b5
6 changed files with 28 additions and 11 deletions

View File

@@ -175,7 +175,7 @@ func (Car) Edges() []ent.Edge {
edge.From("owner", User.Type).
Ref("car").
Unique().
// Make a M20 edge from nullable to required.
// Make the M20 edge from nullable to required edge.
// Requires column and foreign-key migration.
Required(),
}