- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for update_column_skips_association (0.13 sec)
-
tests/update_test.go
if result2.Name != user.Name || result2.Age == user.Age { t.Errorf("Should only update users with name column") } } func TestUpdateColumnsSkipsAssociations(t *testing.T) { user := *GetUser("update_column_skips_association", Config{}) DB.Create(&user) // Update a single field of the user and verify that the changed address is not stored. newAge := uint(100) user.Account.Number = "new_account_number"
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Dec 04 03:50:58 UTC 2023 - 30.3K bytes - Viewed (0)