From 8946f816f9f66ff99ddd40a6a7ca6dc23bd904be Mon Sep 17 00:00:00 2001 From: astaxie Date: Tue, 1 Jul 2014 00:30:05 +0800 Subject: [PATCH] orm:change the models_test default value --- orm/models_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orm/models_test.go b/orm/models_test.go index 2b42fd52..bd0f0ebb 100644 --- a/orm/models_test.go +++ b/orm/models_test.go @@ -205,7 +205,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)"`