Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for BelongsToUser_Org_1 (0.18 sec)

  1. tests/associations_belongs_to_test.go

    	tx.Migrator().DropTable(&BelongsToUser{}, &Org{})
    	tx.AutoMigrate(&BelongsToUser{}, &Org{})
    
    	user := &BelongsToUser{
    		Org: Org{
    			ID: "BelongsToUser_Org_1",
    		},
    	}
    	err := DB.Create(&user).Error
    	AssertEqual(t, err, nil)
    }
    
    func TestBelongsToAssociationUnscoped(t *testing.T) {
    	type ItemParent struct {
    		gorm.Model
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Oct 30 09:15:49 UTC 2023
    - 9.3K bytes
    - Viewed (0)
Back to top