summaryrefslogtreecommitdiffstats
path: root/lib/tasks/redmine.rake
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tasks/redmine.rake')
-rw-r--r--lib/tasks/redmine.rake5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/tasks/redmine.rake b/lib/tasks/redmine.rake
index 01a4e6227..1ecf507ba 100644
--- a/lib/tasks/redmine.rake
+++ b/lib/tasks/redmine.rake
@@ -21,6 +21,11 @@ namespace :redmine do
task :prune => :environment do
Attachment.prune
end
+
+ desc 'Moves attachments stored at the root of the file directory (ie. created before Redmine 2.3) to their subdirectories'
+ task :move_to_subdirectories => :environment do
+ Attachment.move_from_root_to_target_directory
+ end
end
namespace :tokens do