mirror of
https://github.com/FJurmanovic/wallet-go-api.git
synced 2026-02-06 14:18:12 +00:00
WA-9 - implemented wallet
This commit is contained in:
@@ -15,8 +15,7 @@ type WalletsMigration struct {
|
||||
|
||||
func (am *WalletsMigration) Create() {
|
||||
models := []interface{}{
|
||||
(*models.WalletTypeModel)(nil),
|
||||
(*models.WalletModel)(nil),
|
||||
(*models.Wallet)(nil),
|
||||
}
|
||||
|
||||
for _, model := range models {
|
||||
@@ -31,10 +30,3 @@ func (am *WalletsMigration) Create() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func (am *WalletsMigration) PopulateTypes() {
|
||||
walletTypeModel := new(models.WalletTypeModel)
|
||||
walletTypeModel.Init()
|
||||
walletTypeModel.Name = "Test"
|
||||
am.Db.Model(walletTypeModel).Insert()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user