From 39c953b6d64a7d622dd7cbca2eafd930d585e8e8 Mon Sep 17 00:00:00 2001 From: qowevisa Date: Sat, 3 Aug 2024 08:15:39 +0300 Subject: [PATCH] Add Transfer to autoMigrate --- db/db.go | 1 + 1 file changed, 1 insertion(+) diff --git a/db/db.go b/db/db.go index cccc2b1..9b6691b 100644 --- a/db/db.go +++ b/db/db.go @@ -50,6 +50,7 @@ func Connect() *gorm.DB { gormDB.AutoMigrate(&ItemBought{}) gormDB.AutoMigrate(&Income{}) gormDB.AutoMigrate(&Debt{}) + gormDB.AutoMigrate(&Transfer{}) gormDB.AutoMigrate(&User{}) return newUDB }