Update possible upload url format for `Upload.migrate_to_new_scheme`.
This commit is contained in:
parent
bd1db1860a
commit
845b68f9ab
|
@ -274,7 +274,7 @@ class Upload < ActiveRecord::Base
|
|||
|
||||
remap_scope ||= begin
|
||||
Post.with_deleted
|
||||
.where("raw ~ '/uploads/#{db}/\\d+/'")
|
||||
.where("raw ~ '/uploads/#{db}/\\d+/' OR raw ~ '/uploads/#{db}/original/\d{1}/'")
|
||||
.select(:raw, :cooked)
|
||||
.all
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue