discourse/db/migrate/20141014191645_fix_tos_name.rb

9 lines
280 B
Ruby
Raw Normal View History

class FixTosName < ActiveRecord::Migration
def up
2016-04-01 05:33:25 +08:00
I18n.overrides_disabled do
execute ActiveRecord::Base.sql_fragment('UPDATE user_fields SET name = ? WHERE name = ?', I18n.t('terms_of_service.title'), I18n.t("terms_of_service.signup_form_message"))
end
end
end