mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 22:33:45 +08:00
18 lines
385 B
Ruby
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
|