FIX: error "unknown attribute verified" in uploads rake tasks
The new column is verification_status. verified: nil is now verification_status: unchecked
This commit is contained in:
parent
1db8315a8b
commit
f1743ff69c
|
@ -1146,7 +1146,7 @@ def fix_missing_s3
|
||||||
else
|
else
|
||||||
# we do not fix sha, it may be wrong for arbitrary reasons, if we correct it
|
# we do not fix sha, it may be wrong for arbitrary reasons, if we correct it
|
||||||
# we may end up breaking posts
|
# 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
|
OptimizedImage.where(upload_id: upload.id).destroy_all
|
||||||
rebake_ids = PostUpload.where(upload_id: upload.id).pluck(:post_id)
|
rebake_ids = PostUpload.where(upload_id: upload.id).pluck(:post_id)
|
||||||
|
|
Loading…
Reference in New Issue