- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for foreign_key_constraints (0.34 sec)
-
tests/associations_test.go
DB.Migrator().DropTable(&Profile{}, &Member{}) if err := DB.AutoMigrate(&Profile{}, &Member{}); err != nil { t.Fatalf("Failed to migrate, got error: %v", err) } member := Member{Refer: 1, Name: "foreign_key_constraints", Profile: Profile{Name: "my_profile"}} DB.Create(&member) var profile Profile if err := DB.First(&profile, "id = ?", member.Profile.ID).Error; err != nil {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Wed Feb 08 08:29:09 UTC 2023 - 10.9K bytes - Viewed (0)