From 3681cead8126c2313b5abb706b6d83154f78913c Mon Sep 17 00:00:00 2001 From: Frederic Merizen Date: Tue, 25 Sep 2018 08:22:47 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20cosm=C3=A9tique?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/tasks/2018_09_20_procedure_presentation_entreprise.rake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tasks/2018_09_20_procedure_presentation_entreprise.rake b/lib/tasks/2018_09_20_procedure_presentation_entreprise.rake index ca2dd15c0..811d9fc49 100644 --- a/lib/tasks/2018_09_20_procedure_presentation_entreprise.rake +++ b/lib/tasks/2018_09_20_procedure_presentation_entreprise.rake @@ -27,8 +27,8 @@ namespace :'2018_09_20_procedure_presentation_entreprise' do ProcedurePresentation.find_by_sql( <<~SQL SELECT procedure_presentations.*, array_agg(key) as keys - FROM procedure_presentations, LATERAL jsonb_each_text(filters) - WHERE value::jsonb @> '[{"table": "entreprise"}]' + FROM procedure_presentations, LATERAL jsonb_each(filters) + WHERE value @> '[{"table": "entreprise"}]' GROUP BY id; SQL ).each do |procedure_presentation|