discourse/db/migrate/20220727040437_add_topic_ti...

8 lines
181 B
Ruby

# frozen_string_literal: true
class AddTopicTimersIndex < ActiveRecord::Migration[7.0]
def change
add_index :topic_timers, [:topic_id], where: "deleted_at IS NULL"
end
end