From 6a3393fe608418a866f5f1223510a174fe0d0611 Mon Sep 17 00:00:00 2001 From: Rosa Gutierrez Date: Mon, 20 Nov 2023 18:08:53 +0100 Subject: [PATCH] Remove unused scope --- app/models/solid_queue/semaphore.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/app/models/solid_queue/semaphore.rb b/app/models/solid_queue/semaphore.rb index a4bb9be4..57b76556 100644 --- a/app/models/solid_queue/semaphore.rb +++ b/app/models/solid_queue/semaphore.rb @@ -1,6 +1,5 @@ class SolidQueue::Semaphore < SolidQueue::Record scope :available, -> { where("value > 0") } - scope :locked, -> { where(value: 0) } scope :expired, -> { where(expires_at: ...Time.current)} class << self