diff options
| author | Lin Jen-Shin <godfat@godfat.org> | 2016-07-20 23:42:07 +0800 |
|---|---|---|
| committer | Lin Jen-Shin <godfat@godfat.org> | 2016-07-20 23:42:07 +0800 |
| commit | caf6438a2495c09a10f047d18a67b7071d05f7a2 (patch) | |
| tree | 699932232df5b0cc5d3a518c6a31f35323293f1b /app/models/ci | |
| parent | 08f01dbbc5dc7eb608e4a331a536cc08d297d31a (diff) | |
| download | gitlab-ce-caf6438a2495c09a10f047d18a67b7071d05f7a2.tar.gz | |
It's not longer than 80 chars
Diffstat (limited to 'app/models/ci')
| -rw-r--r-- | app/models/ci/build.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb index f87c1206e91..a24665eed72 100644 --- a/app/models/ci/build.rb +++ b/app/models/ci/build.rb @@ -12,9 +12,7 @@ module Ci scope :unstarted, ->() { where(runner_id: nil) } scope :ignore_failures, ->() { where(allow_failure: false) } - scope :with_artifacts, ->() do - where.not(artifacts_file: [nil, '']) - end + scope :with_artifacts, ->() { where.not(artifacts_file: [nil, '']) } scope :with_expired_artifacts, ->() { with_artifacts.where('artifacts_expire_at < ?', Time.now) } scope :last_month, ->() { where('created_at > ?', Date.today - 1.month) } scope :manual_actions, ->() { where(when: :manual) } |
