FeedBunch-app/db/migrate/20150417110807_add_entry_created_at_to_entry_states_index.rb
class AddEntryCreatedAtToEntryStatesIndex < ActiveRecord::Migration[5.2]
def up
add_index :entry_states, [:published, :entry_created_at, :entry_id], name: 'index_entry_states_on_order_fields'
end
def down
remove_index :entry_states, name: 'index_entry_states_on_order_fields'
end
end