gallery/api/models/migrations.go

10 lines
102 B
Go
Raw Normal View History

2022-12-18 00:42:21 +00:00
package models
import "fmt"
func migrate() {
DB().AutoMigrate(&User{})
fmt.Println("Migrated")
}