mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 13:09:33 -06:00
6 lines
201 B
Ruby
6 lines
201 B
Ruby
class AddDeletedPostIndexToPosts < ActiveRecord::Migration[4.2]
|
|
def change
|
|
add_index :posts, [:topic_id, :post_number], where: 'deleted_at IS NOT NULL', name: 'idx_posts_deleted_posts'
|
|
end
|
|
end
|