Skip to content

Commit

Permalink
refactor migration tag
Browse files Browse the repository at this point in the history
  • Loading branch information
yrong authored and mittwillson committed Sep 27, 2021
1 parent fca7a9c commit e62a53b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions schema/field.go
Original file line number Diff line number Diff line change
Expand Up @@ -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, "(") &&
Expand Down

0 comments on commit e62a53b

Please sign in to comment.