- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for Amsterdam (0.05 sec)
-
tests/error_translator_test.go
} DB.Migrator().DropTable(&City{}, &Museum{}) if err = db.AutoMigrate(&City{}, &Museum{}); err != nil { t.Fatalf("failed to migrate countries & cities tables, got error: %v", err) } city := City{Name: "Amsterdam"} err = db.Create(&city).Error if err != nil { t.Fatalf("failed to create city: %v", err) } err = db.Create(&Museum{Name: "Eye Filmmuseum", CityID: city.ID}).Error if err != nil {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Wed Jul 12 13:21:22 UTC 2023 - 3.1K bytes - Viewed (0)