From 0bf20707411558c040ea36ed9cb282d5f1219a81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Fri, 12 Jun 2020 09:33:30 +0200 Subject: [PATCH] Remove job reference in status --- app/models/delayed/job/status.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/delayed/job/status.rb b/app/models/delayed/job/status.rb index 6e9100856a..b399b39f43 100644 --- a/app/models/delayed/job/status.rb +++ b/app/models/delayed/job/status.rb @@ -3,8 +3,8 @@ module Delayed class Status < ApplicationRecord self.table_name = 'delayed_job_statuses' + belongs_to :user belongs_to :reference, polymorphic: true - belongs_to :job, class_name: '::Delayed::Job' enum status: { in_queue: 'in_queue',