mirror of
https://github.com/discourse/discourse.git
synced 2025-02-05 19:11:13 +00:00
Following up from 5268568d23d6243a24db9f0f40eaca53c375540f these status type 5 topic timers are the reminder type which have long been migrated to bookmark reminders
15 lines
428 B
Ruby
15 lines
428 B
Ruby
# 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
|