discourse/db/migrate/20210624080131_add_partial_...

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
256 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class AddPartialIndexPinnedUntil < ActiveRecord::Migration[6.1]
disable_ddl_transaction!
def change
add_index :topics, :pinned_until,
where: 'pinned_until IS NOT NULL',
algorithm: :concurrently
end
end