Add a user index to diary comments

This commit is contained in:
Tom Hughes 2010-04-30 00:21:57 +01:00
parent 937b576bf5
commit 752f737497

View file

@ -0,0 +1,9 @@
class AddUserIndexToDiaryComments < ActiveRecord::Migration
def self.up
add_index :diary_comments, [:user_id, :created_at], :name => "diary_comment_user_id_created_at_index"
end
def self.down
remove_index :diary_comments, :name => "diary_comment_user_id_created_at_index"
end
end