mirror of
https://github.com/discourse/discourse.git
synced 2025-04-19 08:53:43 +08:00
FIX: If we migrated your TOS setting, fix the name so it doesn't look
weird in the admin section.
This commit is contained in:
parent
216f718607
commit
84af9d2bff
6
db/migrate/20141014191645_fix_tos_name.rb
Normal file
6
db/migrate/20141014191645_fix_tos_name.rb
Normal file
@ -0,0 +1,6 @@
|
||||
class FixTosName < ActiveRecord::Migration
|
||||
def up
|
||||
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
|
Loading…
x
Reference in New Issue
Block a user