mirror of
https://github.com/discourse/discourse.git
synced 2024-12-05 09:36:19 +08:00
dcb47d902b
* REFACTOR: Rename SiteSetting.disable_edit_notifications to disable_system_edit_notifications - The older name could cause some confusion because the setting does not disable all edit notifications, only system ones. * FIX: Add frozen_string_literal: true in the migration * DEV: Deprecate 'disable_edit_notifications'
8 lines
245 B
Ruby
8 lines
245 B
Ruby
# frozen_string_literal: true
|
|
|
|
class RenameEditNotificationSetting < ActiveRecord::Migration[5.2]
|
|
def change
|
|
execute "UPDATE site_settings SET name = 'disable_system_edit_notifications' WHERE name = 'disable_edit_notifications'"
|
|
end
|
|
end
|