each -> find_each

This commit is contained in:
Paul Chavard 2024-03-19 16:20:24 +01:00 committed by GitHub
parent bda2d80dea
commit 40fb95978a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,7 +10,7 @@ module Maintenance
dossier.champs
.includes(:type_de_champ)
.where(stable_id: nil)
.each do |champ|
.find_each do |champ|
champ.update_columns(stable_id: champ.stable_id, stream: 'main')
end
end