discourse-akismet/db/migrate/20230321160450_update_netease_site_setting_value.rb
Selase Krakani 4ee4a29ebb
DEV: Indicate NetEase provider is Chinese only (#85)
This change aims to help reduce/prevent confusion with the NetEase
provider which is a china-based service targeted towards chinese
content.
2023-03-21 17:24:31 +00:00

11 lines
379 B
Ruby

# frozen_string_literal: true
class UpdateNeteaseSiteSettingValue < ActiveRecord::Migration[7.0]
def up
execute "UPDATE site_settings SET value = 'netease (Chinese)' WHERE name = 'anti_spam_service' AND value = 'netease'"
end
def down
execute "UPDATE site_settings SET value = 'netease' WHERE name = 'anti_spam_service' AND value = 'netease (Chinese)'"
end
end