2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-03-03 23:54:20 +08:00
discourse/app/models/shelved_notification.rb
Alan Guo Xiang Tan 9f12dd28f9
DEV: Promote historic post_deploy migrations (#34273)
This commit promotes all post_deploy migrations which existed in
Discourse v3.4.0 (timestamp <= 20241023041126)
2025-08-13 14:10:50 +08:00

21 lines
460 B
Ruby

# frozen_string_literal: true
class ShelvedNotification < ActiveRecord::Base
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)
#