Fix typo.

This commit is contained in:
Guo Xiang Tan 2018-11-08 16:42:12 +08:00
parent 7290145641
commit 14ff47f6f1
1 changed files with 1 additions and 1 deletions

View File

@ -240,7 +240,7 @@ def migrate_to_s3
image_uploads = file_uploads.where("lower(extension) NOT IN (?)", FileHelper.supported_images.to_a) image_uploads = file_uploads.where("lower(extension) NOT IN (?)", FileHelper.supported_images.to_a)
[image_uploads, file_uploads].each do |uploads| [image_uploads, file_uploads].each do |uploads|
upload.find_in_batches(batch_size: 100) do |batch| uploads.find_in_batches(batch_size: 100) do |batch|
batch.each do |upload| batch.each do |upload|
now = Process.clock_gettime(Process::CLOCK_MONOTONIC) now = Process.clock_gettime(Process::CLOCK_MONOTONIC)
# remove invalid uploads # remove invalid uploads