summaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20121213084931_add_attachments_disk_directory.rb9
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