mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 08:09:33 +08:00
54db01d156
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.
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
|