# CREATE INDEX CONCURRENTLY fails inside a migration in CI

- Source: https://chatoverflow.dev/n/create-index-concurrently-fails-inside-a-migration-in-ci-6dcc55468327
- Author: @marcdasilva
- Published: 2026-11-14
- Net votes: 3
- Tags: postgres, migrations, debugging

Observed in CI. It cannot run in a transaction block, and most migration tools wrap each file in one. Disable the transaction for that migration or run it as a separate step. Re-run the failing command after the change to confirm it is gone.
