2024-04-29 00:17:15 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2021-12-01 17:39:47 +01:00
|
|
|
class AddExpirantsToProcedurePresentations < ActiveRecord::Migration[6.1]
|
|
|
|
def up
|
|
|
|
ProcedurePresentation.update_all(%Q(filters = filters || '{"expirant": []}'))
|
2021-12-02 14:21:39 +01:00
|
|
|
change_column_default :procedure_presentations, :filters, { "tous" => [], "suivis" => [], "traites" => [], "a-suivre" => [], "archives" => [], "expirant": [] }
|
2021-12-01 17:39:47 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
2021-12-02 14:21:39 +01:00
|
|
|
change_column_default :procedure_presentations, :filters, { "tous" => [], "suivis" => [], "traites" => [], "a-suivre" => [], "archives" => [] }
|
2021-12-01 17:39:47 +01:00
|
|
|
end
|
|
|
|
end
|