mirror of
https://ghfast.top/https://github.com/discourse/discourse-akismet.git
synced 2026-07-15 11:36:24 +08:00
This change aims to help reduce/prevent confusion with the NetEase provider which is a china-based service targeted towards chinese content.
11 lines
379 B
Ruby
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
|