Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. tests/update_test.go

    		t.Errorf("should only update one record, but got %v", rowsAffected)
    	}
    }
    
    func TestUpdates(t *testing.T) {
    	users := []*User{
    		GetUser("updates_01", Config{}),
    		GetUser("updates_02", Config{}),
    	}
    
    	DB.Create(&users)
    	lastUpdatedAt := users[0].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