openstreetmap-website/db/migrate/050_add_user_index_to_diary_comments.rb
2010-05-06 17:18:34 +01:00

9 lines
297 B
Ruby

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