DEV: Update add_column migration to remove transaction (#16715)

This migration is failing to acquire a lock under some production conditions. We're only performing one action, so removing the transaction is safe and may help to resolve the issue.
This commit is contained in:
David Taylor 2022-05-11 11:28:34 +01:00 committed by GitHub
parent 476bd1d237
commit e599b5b08f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -1,7 +1,9 @@
# frozen_string_literal: true
class AddLastSeenReviewableIdToUser < ActiveRecord::Migration[7.0]
disable_ddl_transaction!
def change
add_column :users, :last_seen_reviewable_id, :integer
add_column :users, :last_seen_reviewable_id, :integer, if_not_exists: true
end
end