discourse/app/models/shelved_notification.rb
Alan Guo Xiang Tan c4ba4c5742
DEV: Fix annotations (#28569)
Follow-up to ec8ba5a0b9
2024-08-27 11:15:03 +08:00

26 lines
627 B
Ruby

# frozen_string_literal: true
class ShelvedNotification < ActiveRecord::Base
self.ignored_columns = [
:old_notification_id, # TODO: Remove when column is dropped. At this point, the migration to drop the column has not been writted.
]
belongs_to :notification
def process
NotificationEmailer.process_notification(notification, no_delay: true)
end
end
# == Schema Information
#
# Table name: shelved_notifications
#
# id :bigint not null, primary key
# notification_id :bigint not null
#
# Indexes
#
# index_shelved_notifications_on_notification_id (notification_id)
#