From e62a53b23db3f8b5fac31ffcf90fb505080eaa32 Mon Sep 17 00:00:00 2001 From: yrong Date: Tue, 9 Feb 2021 15:48:39 +0800 Subject: [PATCH] refactor migration tag --- schema/field.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/schema/field.go b/schema/field.go index 8cca57881..ce0e3c130 100644 --- a/schema/field.go +++ b/schema/field.go @@ -189,10 +189,6 @@ func (schema *Schema) ParseField(fieldStruct reflect.StructField) *Field { field.Comment = val } - if _, ok := field.TagSettings["IGNOREMIGRATION"]; ok { - field.IgnoreMigration = true - } - // default value is function or null or blank (primary keys) field.DefaultValue = strings.TrimSpace(field.DefaultValue) skipParseDefaultValue := strings.Contains(field.DefaultValue, "(") &&