diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-09-16 18:19:05 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-09-16 18:20:00 +0300 |
commit | 7ea48ec54689cc262cc036fa65234a231a39c7e8 (patch) | |
tree | 18fb91b14c02032170c304b9222398716ddd7a07 /app/models | |
parent | 912f470497129b0d8759b18700299e38535e7bec (diff) |
Fix CI tests
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/ci/project.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ci/project.rb b/app/models/ci/project.rb index cd2692246b7..ae901d4ccd0 100644 --- a/app/models/ci/project.rb +++ b/app/models/ci/project.rb @@ -33,7 +33,7 @@ module Ci belongs_to :gl_project, class_name: '::Project', foreign_key: :gitlab_id - has_many :commits, ->() { order('CASE WHEN commits.committed_at IS NULL THEN 0 ELSE 1 END', :committed_at, :id) }, dependent: :destroy, class_name: 'Ci::Commit' + has_many :commits, ->() { order('CASE WHEN ci_commits.committed_at IS NULL THEN 0 ELSE 1 END', :committed_at, :id) }, dependent: :destroy, class_name: 'Ci::Commit' has_many :builds, through: :commits, dependent: :destroy, class_name: 'Ci::Build' has_many :runner_projects, dependent: :destroy, class_name: 'Ci::RunnerProject' has_many :runners, through: :runner_projects, class_name: 'Ci::Runner' |