DEV: Drop chat_mention.notification_id column (#24800)

We ignore this column since fbd24fa
This commit is contained in:
Andrei Prigorshnev
2024-04-11 17:15:57 +04:00
committed by GitHub
parent af7d44971d
commit 8b147b7f84
2 changed files with 13 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
# frozen_string_literal: true
class DropNotificationIdFromChatMentions < ActiveRecord::Migration[7.0]
DROPPED_COLUMNS ||= { chat_mentions: %i[notification_id] }
def up
DROPPED_COLUMNS.each { |table, columns| Migration::ColumnDropper.execute_drop(table, columns) }
end
def down
raise ActiveRecord::IrreversibleMigration
end
end