Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2017-05-09 14:14:45 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2017-05-09 21:09:41 +0300
commitf09dcbd9bd2590bb66ee49b65637525a3c71a307 (patch)
tree8cdcbb6667697c559b59c4548c0857da364b8128 /app/models/commit_status.rb
parentf2a4420d66216e3a9172f4ab45c6b4fa96578117 (diff)
Make retried to be nullable
Diffstat (limited to 'app/models/commit_status.rb')
-rw-r--r--app/models/commit_status.rb2
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) }