change paths, add task to db
This commit is contained in:
parent
6a56b03bf6
commit
9e058e4f03
7 changed files with 87 additions and 70 deletions
|
@ -13,6 +13,10 @@ func migrateInitial(orm *gorm.DB) {
|
|||
if err != nil {
|
||||
fmt.Println(fmt.Errorf("failed to migrate User"))
|
||||
}
|
||||
err = orm.AutoMigrate(&Task{})
|
||||
if err != nil {
|
||||
fmt.Println(fmt.Errorf("failed to migrate Task"))
|
||||
}
|
||||
}
|
||||
|
||||
func (db *Database) Initialize() {
|
||||
|
|
Reference in a new issue