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") }