summaryrefslogtreecommitdiffstats
path: root/db/migrate/089_add_attachments_description.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-02-29 19:46:58 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-02-29 19:46:58 +0000
commit9daf39ec5242a6a87efb9c862952e176d4314856 (patch)
tree78ac3c4012e88e4f907e0d5a075956402af67684 /db/migrate/089_add_attachments_description.rb
parent4b15dc10c10d9cb54d156457cc7d6823dac55520 (diff)
downloadredmine-9daf39ec5242a6a87efb9c862952e176d4314856.tar.gz
redmine-9daf39ec5242a6a87efb9c862952e176d4314856.zip
Adds an optional description to attachments.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1180 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db/migrate/089_add_attachments_description.rb')
-rw-r--r--db/migrate/089_add_attachments_description.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/089_add_attachments_description.rb b/db/migrate/089_add_attachments_description.rb
new file mode 100644
index 000000000..411dfe4d6
--- /dev/null
+++ b/db/migrate/089_add_attachments_description.rb
@@ -0,0 +1,9 @@
+class AddAttachmentsDescription < ActiveRecord::Migration
+ def self.up
+ add_column :attachments, :description, :string
+ end
+
+ def self.down
+ remove_column :attachments, :description
+ end
+end