mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
5 lines
196 B
Ruby
5 lines
196 B
Ruby
class AddDeletedPostIndexToPosts < ActiveRecord::Migration
|
|
def change
|
|
add_index :posts, [:topic_id, :post_number], where: 'deleted_at IS NOT NULL', name: 'idx_posts_deleted_posts'
|
|
end
|
|
end
|