-class AddDiaryCreationIndexes < ActiveRecord::Migration[5.0]
+class AddDiaryCreationIndexes < ActiveRecord::Migration[4.2]
def self.up
add_index :diary_entries, [:created_at], :name => "diary_entry_created_at_index"
add_index :diary_entries, [:user_id, :created_at], :name => "diary_entry_user_id_created_at_index"