Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestForeignKeyConstraints (0.13 sec)

  1. tests/associations_test.go

    	}
    
    	if err := DB.Model(member).Association("Profiles").Clear(); err == nil {
    		t.Fatalf("No error occurred during clearind not null association")
    	}
    }
    
    func TestForeignKeyConstraints(t *testing.T) {
    	tidbSkip(t, "not support the foreign key feature")
    
    	type Profile struct {
    		ID       uint
    		Name     string
    		MemberID uint
    	}
    
    	type Member struct {
    		ID      uint
    Registered: Sun Oct 27 09:35:08 UTC 2024
    - Last Modified: Wed Feb 08 08:29:09 UTC 2023
    - 10.9K bytes
    - Viewed (0)
Back to top