From b4b032436142c28e8abee241e3e663b5752930d3 Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Mon, 28 Oct 2019 10:15:06 +1100 Subject: [PATCH] chore: change column source --- db/ddl_statements/latest_tagged_pact_consumer_version_orders.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/ddl_statements/latest_tagged_pact_consumer_version_orders.rb b/db/ddl_statements/latest_tagged_pact_consumer_version_orders.rb index 6e8164ea5..5998f9a9f 100644 --- a/db/ddl_statements/latest_tagged_pact_consumer_version_orders.rb +++ b/db/ddl_statements/latest_tagged_pact_consumer_version_orders.rb @@ -15,7 +15,7 @@ def latest_tagged_pact_consumer_version_orders_v3(connection) connection.from(view) .select_group( Sequel[:lp][:provider_id], - Sequel[:lp][:consumer_id] + Sequel[:lp][:consumer_id], Sequel[:t][:name].as(:tag_name)) .select_append{ max(order).as(latest_consumer_version_order) } .join(:versions, { Sequel[:lp][:consumer_version_id] => Sequel[:cv][:id] }, { table_alias: :cv} )