johngibb / migrate

Exceedingly simple Postgres migration tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Prevent Concurrent Execution of Migrations

johngibb opened this issue · 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).