discourse/db/migrate/20230523073109_delete_old_personal_message_settings.rb
Martin Brennan 54db01d156
DEV: Delete old personal message settings (#21381)
Followup to e62e93f

Both enable_personal_messages and min_trust_to_send_messages
have been deprecated for a long time now, they can be deleted.
2023-05-23 09:58:58 +02:00

18 lines
385 B
Ruby

# frozen_string_literal: true
class DeleteOldPersonalMessageSettings < ActiveRecord::Migration[7.0]
def up
execute <<~SQL
DELETE FROM site_settings WHERE name = 'enable_personal_messages'
SQL
execute <<~SQL
DELETE FROM site_settings WHERE name = 'min_trust_to_send_messages'
SQL
end
def down
raise ActiveRecord::IrreversibleMigration
end
end