Merge pull request #2672 from betagouv/frederic/fix_2613-cosmetic_improvement
Fix cosmétique
This commit is contained in:
commit
0b990fd6ec
1 changed files with 2 additions and 2 deletions
|
@ -27,8 +27,8 @@ namespace :'2018_09_20_procedure_presentation_entreprise' do
|
||||||
ProcedurePresentation.find_by_sql(
|
ProcedurePresentation.find_by_sql(
|
||||||
<<~SQL
|
<<~SQL
|
||||||
SELECT procedure_presentations.*, array_agg(key) as keys
|
SELECT procedure_presentations.*, array_agg(key) as keys
|
||||||
FROM procedure_presentations, LATERAL jsonb_each_text(filters)
|
FROM procedure_presentations, LATERAL jsonb_each(filters)
|
||||||
WHERE value::jsonb @> '[{"table": "entreprise"}]'
|
WHERE value @> '[{"table": "entreprise"}]'
|
||||||
GROUP BY id;
|
GROUP BY id;
|
||||||
SQL
|
SQL
|
||||||
).each do |procedure_presentation|
|
).each do |procedure_presentation|
|
||||||
|
|
Loading…
Reference in a new issue