johngibb/migrate

Prevent Concurrent Execution of Migrations

johngibb opened this issue · 0 comments

We probably ought to obtain an advisory lock before running the migrations, to prevent someone from accidentally trying to migrate in parallel.

Prior art:
Rails (although might be worth incorporating the schema name, per rails/rails#31627).