discourse/db/migrate/20240301033753_delete_old_bookmark_reminder_setting.rb
Martin Brennan fef52c2ab7
DEV: Delete old enable_bookmarks_with_reminders setting (#25982)
This setting has not been used for a long time, get rid
of it and also update the historical migration to not
rely on the SiteSetting model.
2024-03-04 13:48:04 +10:00

12 lines
272 B
Ruby

# frozen_string_literal: true
class DeleteOldBookmarkReminderSetting < ActiveRecord::Migration[7.0]
def up
DB.exec("DELETE FROM site_settings WHERE name = 'enable_bookmarks_with_reminders'")
end
def down
raise ActiveRecord::IrreversibleMigration
end
end