From c99b638d61cc5dd6b9ffcf4212dfaca1973f7500 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Thu, 13 Dec 2012 12:07:19 +0000 Subject: Store attachments in subdirectories (#5298). Existing files can be moved to their target subdirectories using rake redmine:attachments:move_to_subdirectories. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10990 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- db/migrate/20121213084931_add_attachments_disk_directory.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 db/migrate/20121213084931_add_attachments_disk_directory.rb (limited to 'db/migrate/20121213084931_add_attachments_disk_directory.rb') diff --git a/db/migrate/20121213084931_add_attachments_disk_directory.rb b/db/migrate/20121213084931_add_attachments_disk_directory.rb new file mode 100644 index 000000000..d11fcad9b --- /dev/null +++ b/db/migrate/20121213084931_add_attachments_disk_directory.rb @@ -0,0 +1,9 @@ +class AddAttachmentsDiskDirectory < ActiveRecord::Migration + def up + add_column :attachments, :disk_directory, :string + end + + def down + remove_column :attachments, :disk_directory + end +end -- cgit v1.2.3