discourse/db/migrate/20141014191645_fix_tos_name.rb
Sam cb824a6b33 DEV: remove all calls to SqlBuilder use DB.build instead
This is part of the migration to mini_sql, SqlBuilder.new is being
deprecated and replaced with DB.build
2018-06-20 17:53:49 +10:00

9 lines
269 B
Ruby

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"))
end
end
end