Revert changes added by mistake in 2b19e2acc89fb2da856204c312f2e18fb5933d54.

This commit is contained in:
Guo Xiang Tan
2019-06-25 15:25:12 +08:00
parent 2b19e2acc8
commit d21594f4f7
2 changed files with 0 additions and 49 deletions

View File

@ -238,7 +238,6 @@ def migration_successful?(db, should_raise = false)
puts error_message if count > 0
db = "default"
cdn_path = SiteSetting.cdn_path("/uploads/#{db}/original").sub(/https?:/, "")
count = Post.where("cooked LIKE '%#{cdn_path}%'").count
error_message = "#{count} posts are not remapped to new S3 upload URL. #{failure_message}"