Closed pedia closed 1 year ago
According to the model with default bool, it's not desired. Is this a bug?
type Policy struct { gorm.Model Name string BoolFalse bool `gorm:"default:false"` BoolTrue bool `gorm:"default:true"` }
policy2 := Policy{Name: "policy20", BoolFalse: true, BoolTrue: false} result2 := DB.Create(&policy2) assert.False(t, policy2.BoolTrue) // NOT RIGHT HERE
According to the model with default bool, it's not desired. Is this a bug?