mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
FIX: limit
wasn't correctly applied to Upload.migrate_to_new_scheme
.
This commit is contained in:
parent
ae6be6e364
commit
bfe38b2118
@ -96,7 +96,7 @@ class Upload < ActiveRecord::Base
|
||||
local_store = FileStore::LocalStore.new
|
||||
|
||||
scope = Upload.where("url NOT LIKE '%/original/_X/%'").order(id: :desc)
|
||||
scope.limit(limit) if limit
|
||||
scope = scope.limit(limit) if limit
|
||||
|
||||
scope.each do |upload|
|
||||
begin
|
||||
|
Loading…
x
Reference in New Issue
Block a user