This commit is contained in:
Guo Xiang Tan 2019-04-24 16:56:43 +08:00
parent 104a9e79f9
commit 55f406bb79
1 changed files with 1 additions and 1 deletions

View File

@ -274,7 +274,7 @@ class Upload < ActiveRecord::Base
remap_scope ||= begin remap_scope ||= begin
Post.with_deleted Post.with_deleted
.where("raw ~ '/uploads/#{db}/\\d+/' OR raw ~ '/uploads/#{db}/original/\d{1}/'") .where("raw ~ '/uploads/#{db}/\\d+/' OR raw ~ '/uploads/#{db}/original/\\d{1}/'")
.select(:raw, :cooked) .select(:raw, :cooked)
.all .all
end end