-class AddDiaryCreationIndexes < ActiveRecord::Migration
+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"