PostgreSQL zero-downtime migration of a primary key from int to bigint (with Ruby on Rails specific notes)
- This approach requires setting up a PostgreSQL trigger to keep the mirrored
bigint
column in sync with the existingint
column until it is time to swap them out.