mirror of
https://github.com/discourse/discourse.git
synced 2024-12-21 11:06:43 +08:00
14 lines
307 B
Ruby
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
|