Skip to content
Snippets Groups Projects
Commit 0e7ef108 authored by Ryan Castro's avatar Ryan Castro Committed by Andrew Jung
Browse files

Fix ambiguous created_at column for pipeline_configuration_full_path

Currently this lookup joins the 'compliance_framework_settings' table with the 'compliance management_framework' and orders by 'created_at'. However, 'created_at' exists on both tables so the query throws a "'created_at' is ambiguous" error. Specifying the table with this MR.

Changelog: fixed
EE: true
parent d4e61120
No related branches found
No related tags found
1 merge request!181334Fixing ambiguous `created_at` in project.rb
......@@ -507,7 +507,7 @@ def pipeline_configuration_full_path
compliance_framework_settings
.joins(:compliance_management_framework)
.where.not(compliance_management_framework: { pipeline_configuration_full_path: nil })
.order(created_at: :asc)
.order('project_compliance_framework_settings.created_at' => :asc)
.pick(:pipeline_configuration_full_path)
end
......
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