mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Remove unused translations
The migration for the ToS signup field happend in 2014. Everyone who hasn't updated yet needs to live with the English text "Terms of Service". There's no need to keep these unused translations forever.
This commit is contained in:
@@ -2,9 +2,10 @@
|
||||
|
||||
class FixTosName < ActiveRecord::Migration[4.2]
|
||||
def up
|
||||
I18n.overrides_disabled do
|
||||
execute DB.sql_fragment('UPDATE user_fields SET name = ? WHERE name = ?', I18n.t('terms_of_service.title'), I18n.t("terms_of_service.signup_form_message", base_path: ""))
|
||||
end
|
||||
|
||||
execute <<~SQL
|
||||
UPDATE user_fields
|
||||
SET name = 'Terms of Service'
|
||||
WHERE name = 'I have read and accept the <a href="/tos" target="_blank">Terms of Service</a>.'
|
||||
SQL
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user