Use interval string representation
This commit is contained in:
parent
58a90eb4a6
commit
109e5e74b2
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ namespace :after_party do
|
||||||
dossiers_without_conservation_extension = Dossier.where(conservation_extension: nil)
|
dossiers_without_conservation_extension = Dossier.where(conservation_extension: nil)
|
||||||
progress = ProgressReport.new((dossiers_without_conservation_extension.count.to_f / BATCH_SIZE).round)
|
progress = ProgressReport.new((dossiers_without_conservation_extension.count.to_f / BATCH_SIZE).round)
|
||||||
dossiers_without_conservation_extension.in_batches(of: BATCH_SIZE) do |relation|
|
dossiers_without_conservation_extension.in_batches(of: BATCH_SIZE) do |relation|
|
||||||
relation.update_all(conservation_extension: 0.days)
|
relation.update_all(conservation_extension: 'PT0S')
|
||||||
progress.inc
|
progress.inc
|
||||||
end
|
end
|
||||||
progress.finish
|
progress.finish
|
||||||
|
|
Loading…
Reference in a new issue