Added comment

This commit is contained in:
smavros 2019-04-14 21:03:34 +02:00
parent 9df906bc15
commit a1af6ac52f

View file

@ -123,6 +123,8 @@ func DummyPopulateDB(test_db *gorm.DB) {
checkErr(test_db.Create(&widg_B).Error) checkErr(test_db.Create(&widg_B).Error)
// Associations betweend models // 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("Simulation").Append(&simn_A)
test_db.Model(&smo_A).Association("Simulator").Append(&simr_A) test_db.Model(&smo_A).Association("Simulator").Append(&simr_A)