diff --git a/Rakefile b/Rakefile index a58611e2..dbc8e076 100644 --- a/Rakefile +++ b/Rakefile @@ -249,6 +249,9 @@ namespace :justask do r.deleted = true r.save destroyed += 1 + elsif r.user.nil? + r.destroy + destroyed += 1 end progress.increment end @@ -328,6 +331,9 @@ namespace :justask do r.deleted = true r.save destroyed_count[:report] += 1 + elsif r.user.nil? + r.destroy + destroyed_count[:report] += 1 end progress.increment end