mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 03:16:41 +08:00
fa572d3a7a
We have found no need for these reminder types, so we are removing the code for them.
18 lines
430 B
Ruby
18 lines
430 B
Ruby
# frozen_string_literal: true
|
|
|
|
class MigrateAtDesktopBookmarkReminders < ActiveRecord::Migration[6.0]
|
|
def up
|
|
# reminder_type 0 is at_desktop, which is no longer valid
|
|
DB.exec(
|
|
<<~SQL, now: Time.zone.now
|
|
UPDATE bookmarks SET reminder_type = NULL, reminder_at = NULL, updated_at = :now
|
|
WHERE reminder_type = 0
|
|
SQL
|
|
)
|
|
end
|
|
|
|
def down
|
|
raise ActiveRecord::IrreversibleMigration
|
|
end
|
|
end
|