Skip to content

Commit 4adcaa6

Browse files
committed
Add migrations for users and addresses
1 parent a3f23bb commit 4adcaa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/base.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func init(){
3131
}
3232

3333
db = conn
34-
db.Debug().AutoMigrate(&Account{}, &Contact{}) //Database migration
34+
db.Debug().AutoMigrate(&Account{}, &Contact{}, &User{}, &Address{}) //Database migration
3535

3636
}
3737

0 commit comments

Comments
 (0)