diff --git a/model_struct.go b/model_struct.go index 13768a18..4ea821d6 100644 --- a/model_struct.go +++ b/model_struct.go @@ -439,7 +439,7 @@ func (scope *Scope) generateSqlTag(field *StructField) string { if field.IsPrimaryKey { autoIncrease = true } - if v == "NO" { + if v == "FALSE" { autoIncrease = false }