pepster/models/automigrate.go

8 lines
98 B
Go
Raw Permalink Normal View History

2021-07-19 17:06:54 -05:00
package models
import "gorm.io/gorm"
func AutoMigrate(db *gorm.DB) {
db.AutoMigrate(&User{})
}