openstreetmap-website/db/migrate/050_add_user_index_to_diary_comments.rb
2019-04-24 11:14:05 +01:00

9 lines
302 B
Ruby

class AddUserIndexToDiaryComments < ActiveRecord::Migration[4.2]
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