mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Drop chat_mention.notification_id column (#24800)
We ignore this column since fbd24fa
This commit is contained in:
parent
af7d44971d
commit
8b147b7f84
@ -20,7 +20,6 @@ end
|
|||||||
# id :bigint not null, primary key
|
# id :bigint not null, primary key
|
||||||
# chat_message_id :integer not null
|
# chat_message_id :integer not null
|
||||||
# user_id :integer
|
# user_id :integer
|
||||||
# notification_id :integer not null
|
|
||||||
# target_id :integer
|
# target_id :integer
|
||||||
# type :integer not null
|
# type :integer not null
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user