diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-12-13 12:07:19 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-12-13 12:07:19 +0000 |
commit | c99b638d61cc5dd6b9ffcf4212dfaca1973f7500 (patch) | |
tree | 13f809bad3d9ce0c8583b857d5030b55c54bb1f1 /db/migrate/20121213084931_add_attachments_disk_directory.rb | |
parent | d0bbaef308ae6183445a8697b08f8eae5ed9ccf8 (diff) | |
download | redmine-c99b638d61cc5dd6b9ffcf4212dfaca1973f7500.tar.gz redmine-c99b638d61cc5dd6b9ffcf4212dfaca1973f7500.zip |
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
Diffstat (limited to 'db/migrate/20121213084931_add_attachments_disk_directory.rb')
-rw-r--r-- | db/migrate/20121213084931_add_attachments_disk_directory.rb | 9 |
1 files changed, 9 insertions, 0 deletions
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 |