2019-05-02 18:17:27 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-01-03 12:03:01 -05:00
|
|
|
class AddIndexesToReviewables < ActiveRecord::Migration[5.2]
|
|
|
|
def up
|
|
|
|
remove_index :reviewables, :status
|
|
|
|
add_index :reviewables, %i[status created_at]
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
remove_index :reviewables, %i[status created_at]
|
|
|
|
add_index :reviewables, :status
|
|
|
|
end
|
|
|
|
end
|