mirror of
https://github.com/discourse/discourse.git
synced 2025-06-02 04:08:41 +08:00
DEV: Drop user_id from chat_mentions (#25022)
This column is ignored since 62f423d
This commit is contained in:

committed by
GitHub

parent
8b147b7f84
commit
463eff2bbf
@ -0,0 +1,13 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class DropUserIdFromChatMentions < ActiveRecord::Migration[7.0]
|
||||
DROPPED_COLUMNS ||= { chat_mentions: %i[user_id] }
|
||||
|
||||
def up
|
||||
DROPPED_COLUMNS.each { |table, columns| Migration::ColumnDropper.execute_drop(table, columns) }
|
||||
end
|
||||
|
||||
def down
|
||||
raise ActiveRecord::IrreversibleMigration
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user