Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for update_column_01 (0.12 sec)

  1. tests/update_test.go

    	DB.First(&user4, user3.ID)
    
    	user3.Age += 100
    	AssertObjEqual(t, user4, user3, "UpdatedAt", "Age")
    }
    
    func TestUpdateColumn(t *testing.T) {
    	users := []*User{
    		GetUser("update_column_01", Config{}),
    		GetUser("update_column_02", Config{}),
    	}
    
    	DB.Create(&users)
    	lastUpdatedAt := users[1].UpdatedAt
    
    	// update with map
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Dec 04 03:50:58 UTC 2023
    - 30.3K bytes
    - Viewed (0)
Back to top