mirror of
https://github.com/discourse/discourse.git
synced 2025-02-22 08:49:56 +08:00

This reduces chances of errors where consumers of strings mutate inputs and reduces memory usage of the app. Test suite passes now, but there may be some stuff left, so we will run a few sites on a branch prior to merging
11 lines
315 B
Ruby
11 lines
315 B
Ruby
# frozen_string_literal: true
|
|
|
|
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
|
|
|
|
end
|
|
end
|