diff --git a/gormschema/gorm.go b/gormschema/gorm.go index 71310b0..b8494b8 100644 --- a/gormschema/gorm.go +++ b/gormschema/gorm.go @@ -313,7 +313,7 @@ func BuildStmt(fn func(db *gorm.DB) *gorm.DB) ViewOption { // orderModels places join tables at the end of the list of models (if any), // which helps GORM resolve m2m relationships correctly. -func (m *migrator) orderModels(models []any) ([]any, error) { +func (m *migrator) orderModels(models ...any) ([]any, error) { var ( joinTableDBNames = make(map[string]bool) otherTables []any