Commit c6e4b6a7 authored by Shinya Maeda's avatar Shinya Maeda Committed by Alessio Caiazza

Optimize query format

parent 27a4c035
......@@ -97,7 +97,7 @@ module HasStatus
scope :failed_or_canceled, -> { where(status: [:failed, :canceled]) }
scope :cancelable, -> do
where("status IN ('running', 'pending', 'created', 'scheduled')")
where(status: [:running, :pending, :created, :scheduled])
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment