[#2622] Change displayed_fields to proper JSONB
This commit is contained in:
parent
a3cb2356cf
commit
68608307ad
4 changed files with 12 additions and 11 deletions
9
lib/tasks/2018_09_20_procedure_presentation_jsonb.rake
Normal file
9
lib/tasks/2018_09_20_procedure_presentation_jsonb.rake
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue