Permalink
Browse files

added missing index to messages model

  • Loading branch information...
1 parent 8418355 commit 95eb4f5b06d54712a3e2f7fff1a39ee4847036d7 @dmitryame committed Dec 17, 2009
Showing with 9 additions and 0 deletions.
  1. +9 −0 db/migrate/20091217152251_add_attachment_content_type_index.rb
@@ -0,0 +1,9 @@
+class AddAttachmentContentTypeIndex < ActiveRecord::Migration
+ def self.up
+ add_index :messages, :attachment_content_type
+ end
+
+ def self.down
+ remove_index :messages, :attachment_content_type
+ end
+end

0 comments on commit 95eb4f5

Please sign in to comment.