8946f816 by astaxie

orm:change the models_test default value

1 parent 36ba1e49
...@@ -205,7 +205,7 @@ type User struct { ...@@ -205,7 +205,7 @@ type User struct {
205 Password string `orm:"size(100)"` 205 Password string `orm:"size(100)"`
206 Status int16 `orm:"column(Status)"` 206 Status int16 `orm:"column(Status)"`
207 IsStaff bool 207 IsStaff bool
208 IsActive bool `orm:"default(1)"` 208 IsActive bool `orm:"default(TRUE)"`
209 Created time.Time `orm:"auto_now_add;type(date)"` 209 Created time.Time `orm:"auto_now_add;type(date)"`
210 Updated time.Time `orm:"auto_now"` 210 Updated time.Time `orm:"auto_now"`
211 Profile *Profile `orm:"null;rel(one);on_delete(set_null)"` 211 Profile *Profile `orm:"null;rel(one);on_delete(set_null)"`
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!