Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for TestOverrideJoinTable (0.49 seconds)

  1. tests/joins_table_test.go

    }
    
    type Address struct {
    	ID   uint
    	Name string
    }
    
    type PersonAddress struct {
    	PersonID  int
    	AddressID int
    	CreatedAt time.Time
    	DeletedAt gorm.DeletedAt
    }
    
    func TestOverrideJoinTable(t *testing.T) {
    	DB.Migrator().DropTable(&Person{}, &Address{}, &PersonAddress{})
    
    	if err := DB.SetupJoinTable(&Person{}, "Addresses", &PersonAddress{}); err != nil {
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Thu Sep 10 13:46:18 GMT 2020
    - 3.5K bytes
    - Click Count (1)
Back to Top