It's not longer than 80 chars
This commit is contained in:
parent
08f01dbbc5
commit
caf6438a24
|
@ -12,9 +12,7 @@ module Ci
|
||||||
|
|
||||||
scope :unstarted, ->() { where(runner_id: nil) }
|
scope :unstarted, ->() { where(runner_id: nil) }
|
||||||
scope :ignore_failures, ->() { where(allow_failure: false) }
|
scope :ignore_failures, ->() { where(allow_failure: false) }
|
||||||
scope :with_artifacts, ->() do
|
scope :with_artifacts, ->() { where.not(artifacts_file: [nil, '']) }
|
||||||
where.not(artifacts_file: [nil, ''])
|
|
||||||
end
|
|
||||||
scope :with_expired_artifacts, ->() { with_artifacts.where('artifacts_expire_at < ?', Time.now) }
|
scope :with_expired_artifacts, ->() { with_artifacts.where('artifacts_expire_at < ?', Time.now) }
|
||||||
scope :last_month, ->() { where('created_at > ?', Date.today - 1.month) }
|
scope :last_month, ->() { where('created_at > ?', Date.today - 1.month) }
|
||||||
scope :manual_actions, ->() { where(when: :manual) }
|
scope :manual_actions, ->() { where(when: :manual) }
|
||||||
|
|
Loading…
Reference in New Issue