discourse/db/migrate/20210701233509_delete_old_reminder_topic_timers.rb

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

15 lines
428 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class DeleteOldReminderTopicTimers < ActiveRecord::Migration[6.1]
def up
# following up from MigrateUserTopicTimersToBookmarkReminders,
# these status type 5 topic timers are the reminder type which
# have long been migrated to bookmark reminders
DB.exec("DELETE FROM topic_timers WHERE status_type = 5")
end
def down
raise ActiveRecord::IrreversibleMigration
end
end