[#2622] Change displayed_fields to proper JSONB

This commit is contained in:
Frederic Merizen 2018-09-20 17:05:58 +02:00
parent a3cb2356cf
commit 68608307ad
4 changed files with 12 additions and 11 deletions

View file

@ -0,0 +1,9 @@
namespace :'2018_09_20_procedure_presentation_jsonb' do
task run: :environment do
ProcedurePresentation.update_all(
<<~SQL
displayed_fields = ('[' || ARRAY_TO_STRING(old_displayed_fields, ',') || ']')::JSONB
SQL
)
end
end