fix(data): move type de champs engagement to checkbox
This commit is contained in:
parent
acdbf5ed5e
commit
c52b06a84f
1 changed files with 7 additions and 0 deletions
|
@ -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
|
Loading…
Reference in a new issue