Skip to content
Snippets Groups Projects
Commit 16c8b910 authored by micael.bergeron's avatar micael.bergeron
Browse files

revert the `#all_pipelines` method to use the pluck

the `ci_pipelines.sha` column is not the same type than the
`merge_request_diff_commits.sha` column (varchar, bytea)
parent cb6f51ec
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -921,9 +921,8 @@ class MergeRequest < ActiveRecord::Base
def all_pipelines
return Ci::Pipeline.none unless source_project
 
commit_shas = all_commits.unscope(:limit).select(:sha)
@all_pipelines ||= source_project.pipelines
.where(sha: commit_shas, ref: source_branch)
.where(sha: all_commit_shas, ref: source_branch)
.order(id: :desc)
end
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment