Merge pull request #7871 from mfo/fix-clean-migrate-type-de-champs-engagement

fix(data): move type de champs engagement to checkbox
This commit is contained in:
LeSim 2022-10-07 18:37:10 +02:00 committed by GitHub
commit 69ef54a173
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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