FIX: Delete old reminder topic timers (#13611)

FIX: Delete old reminder topic timers (#13611)

Following up from 5268568d23d6243a24db9f0f40eaca53c375540f these status type 5 topic timers are the reminder type which have long been migrated to bookmark reminders

diff --git a/db/migrate/20210701233509_delete_old_reminder_topic_timers.rb b/db/migrate/20210701233509_delete_old_reminder_topic_timers.rb
new file mode 100644
index 0000000..5624695
--- /dev/null
+++ b/db/migrate/20210701233509_delete_old_reminder_topic_timers.rb
@@ -0,0 +1,14 @@
+# 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

GitHub sha: 58941ea2beebc7dda44522da8b0645dd792120a9

This commit appears in #13611 which was approved by tgxworld. It was merged by martin.