DEV: Migrate Chat::NotificationMention#notification_id to bigint (#28571)

`Notification#id` was migrated to `bigint` in 799a45a291e9f2bd94278f565e58874458768079
This commit is contained in:
Alan Guo Xiang Tan
2024-08-27 19:57:16 +08:00
committed by GitHub
parent 62c8904721
commit 82e75c8700
5 changed files with 101 additions and 2 deletions

View File

@ -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
#