gallery/api/models/migrations.go

10 lines
102 B
Go

package models
import "fmt"
func migrate() {
DB().AutoMigrate(&User{})
fmt.Println("Migrated")
}