Skip to content

Saleor Core: the high performance, composable, headless commerce API.

395 B
Raw Blame
rules:
  - id: add-index-concurrently
    metadata:
      category: best-practice
      technology:
        - django
    languages:
      - python
    severity: ERROR
    message: Adding an index in migrations should be done concurrently; use
      `django.contrib.postgres.operations.AddIndexConcurrently` instead of
      `migrations.AddIndex`.
    pattern: django.db.migrations.AddIndex(...)