mirror of
https://github.com/discourse/discourse.git
synced 2025-01-20 04:42:45 +08:00
12 lines
278 B
Ruby
12 lines
278 B
Ruby
|
class AddIndexesToReviewables < ActiveRecord::Migration[5.2]
|
||
|
def up
|
||
|
remove_index :reviewables, :status
|
||
|
add_index :reviewables, [:status, :created_at]
|
||
|
end
|
||
|
|
||
|
def down
|
||
|
remove_index :reviewables, [:status, :created_at]
|
||
|
add_index :reviewables, :status
|
||
|
end
|
||
|
end
|