diff --git a/schema/relationship.go b/schema/relationship.go index def4a5958..c535cf071 100644 --- a/schema/relationship.go +++ b/schema/relationship.go @@ -663,6 +663,7 @@ func (rel *Relationship) ParseConstraint() *Constraint { if !(rel.References[idx].PrimaryKey == ref.PrimaryKey && rel.References[idx].ForeignKey == ref.ForeignKey && rel.References[idx].PrimaryValue == ref.PrimaryValue) { matched = false + break } }