Ship Postgres migrations without fear.

pgsafe is a static linter that flags PostgreSQL schema migrations likely to lock or break production — no database connection required.

What it does

Install

Run it in CI with the GitHub Action:

- uses: fixed-width/pgsafe@v0.8.5
  with:
    files: "db/migrate/*.sql"

Or grab a prebuilt binary from the latest release (static Linux and macOS builds).