Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for 55 (0.11 sec)

  1. tests/upsert_test.go

    		t.Errorf("user should be created with search value and attrs")
    	}
    
    	updatedAt1 := user4.UpdatedAt
    	DB.Where(&User{Name: "find or create 3"}).Assign("age", 55).FirstOrCreate(&user4)
    
    	if user4.Age != 55 {
    		t.Errorf("Failed to set change to 55, got %v", user4.Age)
    	}
    
    	if updatedAt1.Format(time.RFC3339Nano) == user4.UpdatedAt.Format(time.RFC3339Nano) {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Sep 05 07:39:19 GMT 2022
    - 11.4K bytes
    - Viewed (0)
Back to top