test case bool default value is true

This commit is contained in:
astaxie 2016-01-15 14:02:08 +08:00
parent 7dbeb2c39a
commit a069c73b3a
1 changed files with 1 additions and 1 deletions

View File

@ -230,7 +230,7 @@ type User struct {
Password string `orm:"size(100)"`
Status int16 `orm:"column(Status)"`
IsStaff bool
IsActive bool `orm:"default(1)"`
IsActive bool `orm:"default(true)"`
Created time.Time `orm:"auto_now_add;type(date)"`
Updated time.Time `orm:"auto_now"`
Profile *Profile `orm:"null;rel(one);on_delete(set_null)"`