From f1743ff69cf6bd75ff9ed62ad5531ca47e262d87 Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Mon, 21 Sep 2020 10:47:52 -0400 Subject: [PATCH] FIX: error "unknown attribute verified" in uploads rake tasks The new column is verification_status. verified: nil is now verification_status: unchecked --- lib/tasks/uploads.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/uploads.rake b/lib/tasks/uploads.rake index 2587009e60d..431563b0a28 100644 --- a/lib/tasks/uploads.rake +++ b/lib/tasks/uploads.rake @@ -1146,7 +1146,7 @@ def fix_missing_s3 else # we do not fix sha, it may be wrong for arbitrary reasons, if we correct it # we may end up breaking posts - upload.update!(etag: fixed_upload.etag, url: fixed_upload.url, verified: nil) + upload.update!(etag: fixed_upload.etag, url: fixed_upload.url, verification_status: Upload.verification_statuses[:unchecked]) OptimizedImage.where(upload_id: upload.id).destroy_all rebake_ids = PostUpload.where(upload_id: upload.id).pluck(:post_id)