mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
entc/gen: extract fk column from edge (#919)
This commit is contained in:
@@ -44,7 +44,7 @@ in the LICENSE file in the root directory of this source tree.
|
||||
// ForeignKeys holds the SQL foreign-keys that are owned by the {{ $.Name }} type.
|
||||
var ForeignKeys = []string{
|
||||
{{- range $fk := . }}
|
||||
"{{ $fk.Field.Name }}",
|
||||
"{{ $fk.Edge.Rel.Column }}",
|
||||
{{- end }}
|
||||
}
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user