From dbfb141b6ff1dfe76df6c1eaa8799e52f857425c Mon Sep 17 00:00:00 2001 From: Rosa Gutierrez Date: Fri, 23 Jan 2026 22:04:23 +0100 Subject: [PATCH] Restore PushNotificationJob as shim for in-flight jobs during deploy In-flight jobs queued before deploy would fail if the old class is missing. This shim delegates to the new notification.push method. Co-Authored-By: Claude Opus 4.5 --- app/jobs/push_notification_job.rb | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 app/jobs/push_notification_job.rb diff --git a/app/jobs/push_notification_job.rb b/app/jobs/push_notification_job.rb new file mode 100644 index 000000000..862564927 --- /dev/null +++ b/app/jobs/push_notification_job.rb @@ -0,0 +1,7 @@ +class PushNotificationJob < ApplicationJob + discard_on ActiveJob::DeserializationError + + def perform(notification) + notification.push + end +end