From 4ba26e4a1b07c9a218bb0c89eb1826a245666e4a Mon Sep 17 00:00:00 2001 From: "Ben Sheldon [he/him]" Date: Mon, 22 May 2023 09:40:10 -0700 Subject: [PATCH] Ensure migration warning for `DiscreteExecution` constant is in explicit `GoodJob::` namespace (#963) --- app/models/good_job/base_execution.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/good_job/base_execution.rb b/app/models/good_job/base_execution.rb index ea8e7f66c..4fa9a0d81 100644 --- a/app/models/good_job/base_execution.rb +++ b/app/models/good_job/base_execution.rb @@ -35,7 +35,7 @@ def coalesce_scheduled_at_created_at end def discrete_support? - if connection.table_exists?(DiscreteExecution.table_name) + if connection.table_exists?(GoodJob::DiscreteExecution.table_name) true else migration_pending_warning!