- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestAutoMigrateNullable (1.29 sec)
-
tests/migrate_test.go
} if !DB.Migrator().HasConstraint("migrate_people", "fk_migrate_people_manager") { t.Fatalf("Failed to find has one constraint between people and managers") } } func TestAutoMigrateNullable(t *testing.T) { type MigrateNullableColumn struct { ID uint Bonus float64 `gorm:"not null"` Stock float64 } DB.Migrator().DropTable(&MigrateNullableColumn{})
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Wed Aug 20 04:51:17 UTC 2025 - 65.2K bytes - Viewed (0)