mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 10:32:08 +08:00
DEV: Migrate Chat::NotificationMention#notification_id
to bigint
(#28571)
`Notification#id` was migrated to `bigint` in 799a45a291e9f2bd94278f565e58874458768079
This commit is contained in:

committed by
GitHub

parent
62c8904721
commit
82e75c8700
@ -4,6 +4,10 @@ module Chat
|
||||
class MentionNotification < ActiveRecord::Base
|
||||
self.table_name = "chat_mention_notifications"
|
||||
|
||||
self.ignored_columns = [
|
||||
:old_notification_id, # TODO remove once this column is removed. Migration to drop the column has not been written.
|
||||
]
|
||||
|
||||
belongs_to :chat_mention, class_name: "Chat::Mention"
|
||||
belongs_to :notification, dependent: :destroy
|
||||
end
|
||||
@ -13,8 +17,8 @@ end
|
||||
#
|
||||
# Table name: chat_mention_notifications
|
||||
#
|
||||
# chat_mention_id :integer not null
|
||||
# notification_id :integer not null
|
||||
# chat_mention_id :integer not null
|
||||
# notification_id :bigint not null
|
||||
#
|
||||
# Indexes
|
||||
#
|
||||
|
Reference in New Issue
Block a user