Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Haddad (0.15 sec)

  1. tests/migrate_test.go

    		t.Fatalf("Failed to add column, got %v", err)
    	}
    
    	if !DB.Table("column_structs").Migrator().HasColumn(&NewColumnStruct{}, "NewName") {
    		t.Fatalf("Failed to find added column")
    	}
    
    	if err := DB.Table("column_structs").Migrator().DropColumn(&NewColumnStruct{}, "NewName"); err != nil {
    		t.Fatalf("Failed to add column, got %v", err)
    	}
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Mar 18 11:24:16 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  2. tests/named_polymorphic_test.go

    		Name: "treadmill 2",
    	})
    
    	if DB.Model(&hamster).Association("PreferredToy").Count() != 1 {
    		t.Errorf("Hamster's toys should be added with Append")
    	}
    
    	if DB.Model(&hamster).Association("OtherToy").Count() != 1 {
    		t.Errorf("Hamster's toys should be added with Append")
    	}
    
    	DB.Model(&hamster).Association("PreferredToy").Clear()
    
    	if DB.Model(&hamster2).Association("PreferredToy").Count() != 0 {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Wed Jul 08 09:59:40 GMT 2020
    - 4.2K bytes
    - Viewed (0)
Back to top