discourse/db/migrate/20230523073109_delete_old_personal_message_settings.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
385 B
Ruby
Raw Normal View History

# 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