mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 06:49:14 +08:00
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:
parent
476bd1d237
commit
e599b5b08f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user