From 84af9d2bff66ed621e76afff2004c8cfb577f5a4 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Tue, 14 Oct 2014 15:52:36 -0400 Subject: [PATCH] FIX: If we migrated your TOS setting, fix the name so it doesn't look weird in the admin section. --- db/migrate/20141014191645_fix_tos_name.rb | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 db/migrate/20141014191645_fix_tos_name.rb diff --git a/db/migrate/20141014191645_fix_tos_name.rb b/db/migrate/20141014191645_fix_tos_name.rb new file mode 100644 index 0000000000..ff8ac0aa18 --- /dev/null +++ b/db/migrate/20141014191645_fix_tos_name.rb @@ -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