1 2 3 4 5
class AddMissingIndex < ActiveRecord::Migration def change add_index "services", [:created_at, :id] end end