discourse/db/migrate/20160719002225_add_deleted_...

6 lines
196 B
Ruby
Raw Normal View History

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