Skip to content

A platform for community discussion. Free, open, simple.

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

David Taylord90065e0efb7
diff --git a/db/migrate/20220505191131_add_last_seen_reviewable_id_to_user.rb b/db/migrate/20220505191131_add_last_seen_reviewable_id_to_user.rb
index a050ca6ef25..7bc50e025ef 100644
--- a/db/migrate/20220505191131_add_last_seen_reviewable_id_to_user.rb
+++ b/db/migrate/20220505191131_add_last_seen_reviewable_id_to_user.rb
@@ -1,9 +1,7 @@
# frozen_string_literal: true
class AddLastSeenReviewableIdToUser < ActiveRecord::Migration[7.0]
- disable_ddl_transaction!
-
def change
- add_column :users, :last_seen_reviewable_id, :integer, if_not_exists: true
+ add_column :users, :last_seen_reviewable_id, :integer
end
end