From 384b2c15de2a72c2350aa28d371b618aec5b5972 Mon Sep 17 00:00:00 2001 From: akuma06 Date: Mon, 8 May 2017 02:18:48 +0200 Subject: [PATCH] Azhao12345 fix --- db/gorm.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db/gorm.go b/db/gorm.go index 00d49b38..a2cd4617 100644 --- a/db/gorm.go +++ b/db/gorm.go @@ -31,8 +31,8 @@ func GormInit(conf *config.Config) (*gorm.DB, error) { if config.Environment == "DEVELOPMENT" { db.LogMode(true) // db.DropTable(&model.User{}, "UserFollower") - db.AutoMigrate(&model.Torrents{}, &model.User{}, &model.Role{}, &model.Language{}) - // db.AutoMigrate(&model.Article{}, &model.Location{}, &model.Comment{}, &model.File{}) + db.AutoMigrate(&model.Torrents{}, &model.UsersFollowers{}, &model.User{}, &model.Role{}, &model.Language{}) + // db.AutoMigrate(&model.Comment{}) // db.Model(&model.User{}).AddIndex("idx_user_token", "token") }