mirror of
https://git.rwth-aachen.de/acs/public/villas/web-backend-go/
synced 2025-03-30 00:00:12 +01:00
Added comment
This commit is contained in:
parent
9df906bc15
commit
a1af6ac52f
1 changed files with 2 additions and 0 deletions
|
@ -123,6 +123,8 @@ func DummyPopulateDB(test_db *gorm.DB) {
|
|||
checkErr(test_db.Create(&widg_B).Error)
|
||||
|
||||
// Associations betweend models
|
||||
// For `belongs to` use the model with id=1
|
||||
// For `has many` use the models with id=1 and id=2
|
||||
|
||||
test_db.Model(&smo_A).Association("Simulation").Append(&simn_A)
|
||||
test_db.Model(&smo_A).Association("Simulator").Append(&simr_A)
|
||||
|
|
Loading…
Add table
Reference in a new issue