each -> find_each
This commit is contained in:
parent
bda2d80dea
commit
40fb95978a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue