discourse/db/migrate/20230523073109_delete_old_p...

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