diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-05-09 13:14:45 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-05-09 20:09:41 +0200 |
commit | f09dcbd9bd2590bb66ee49b65637525a3c71a307 (patch) | |
tree | 8cdcbb6667697c559b59c4548c0857da364b8128 /app/models/commit_status.rb | |
parent | f2a4420d66216e3a9172f4ab45c6b4fa96578117 (diff) | |
download | gitlab-ce-f09dcbd9bd2590bb66ee49b65637525a3c71a307.tar.gz |
Make retried to be nullable
Diffstat (limited to 'app/models/commit_status.rb')
-rw-r--r-- | app/models/commit_status.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/commit_status.rb b/app/models/commit_status.rb index 528bf4d87ac..7855c16ee5b 100644 --- a/app/models/commit_status.rb +++ b/app/models/commit_status.rb @@ -31,7 +31,7 @@ class CommitStatus < ActiveRecord::Base false, all_state_names - [:failed, :canceled, :manual]) end - scope :latest, -> { where(retried: false) } + scope :latest, -> { where(retried: [false, nil]) } scope :retried, -> { where(retried: true) } scope :ordered, -> { order(:name) } scope :latest_ordered, -> { latest.ordered.includes(project: :namespace) } |