aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorSeb Bacon <seb.bacon@gmail.com>2011-12-13 17:27:39 +0000
committerSeb Bacon <seb.bacon@gmail.com>2011-12-13 17:27:39 +0000
commit4075d5a70a6e08c1d55e97dbfc13fda4a2faaf84 (patch)
treef46f09858bc4140394e60fe0f37a8ee15a8d134a /db
parent8405aeefaf1b4f72e1bc781995547d775e8991d7 (diff)
Further improvements to attachment caching
Diffstat (limited to 'db')
-rw-r--r--db/migrate/106_add_hex_digest_to_foi_attachment.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/106_add_hex_digest_to_foi_attachment.rb b/db/migrate/106_add_hex_digest_to_foi_attachment.rb
new file mode 100644
index 000000000..d9520a934
--- /dev/null
+++ b/db/migrate/106_add_hex_digest_to_foi_attachment.rb
@@ -0,0 +1,9 @@
+class AddHexDigestToFoiAttachment < ActiveRecord::Migration
+ def self.up
+ add_column :foi_attachments, :hexdigest, :string, :limit => 32
+ end
+
+ def self.down
+ remove_column :foi_attachments, :hexdigest
+ end
+end