Skip to content

Commit 511f1ff

Browse files
bensheldonrosa
authored andcommitted
Use beginless range for query instead of < ?
1 parent e35fe03 commit 511f1ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/solid_queue/process/prunable.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module SolidQueue::Process::Prunable
44
extend ActiveSupport::Concern
55

66
included do
7-
scope :prunable, -> { where("last_heartbeat_at <= ?", SolidQueue.process_alive_threshold.ago) }
7+
scope :prunable, -> { where(last_heartbeat_at: ..SolidQueue.process_alive_threshold.ago) }
88
end
99

1010
class_methods do

0 commit comments

Comments
 (0)