fix(data): move type de champs engagement to checkbox

This commit is contained in:
Martin 2022-10-07 15:49:49 +02:00 committed by LeSim
parent acdbf5ed5e
commit c52b06a84f

View file

@ -0,0 +1,7 @@
class FixCleanMigrateTypeDeChampsEngagement < ActiveRecord::Migration[6.1]
def change
Champ.where(type: "Champs::EngagementChamp").in_batches do |batch|
batch.update_all(type: 'Champs::CheckboxChamp')
end
end
end