Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 11 of 11 for CompanyID (0.04 seconds)

  1. tests/migrate_test.go

    		}
    
    		if !DB.Migrator().HasConstraint(&User{}, name) {
    			t.Fatalf("failed to found constraint %v", name)
    		}
    	}
    }
    
    type DynamicUser struct {
    	gorm.Model
    	Name      string
    	CompanyID string `gorm:"index"`
    }
    
    // To test auto migrate crate indexes for dynamic table name
    // https://github.com/go-gorm/gorm/issues/4752
    func TestMigrateIndexesWithDynamicTableName(t *testing.T) {
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Mar 21 11:49:01 GMT 2026
    - 66.3K bytes
    - Click Count (0)
Back to Top