discourse/db/migrate/20190313171338_add_indexes_to_reviewables.rb
2023-01-09 11:59:41 +00:00

14 lines
307 B
Ruby

# frozen_string_literal: true
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