discourse/db/migrate/20160719002225_add_deleted_...

Failed to ignore revisions in .git-blame-ignore-revs.

8 lines
232 B
Ruby
Raw Normal View History

# frozen_string_literal: true
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