mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 15:44:38 +08:00
98a17edc90
The migration for the ToS signup field happend in 2014. Everyone who hasn't updated yet needs to live with the English text "Terms of Service". There's no need to keep these unused translations forever.
12 lines
287 B
Ruby
12 lines
287 B
Ruby
# frozen_string_literal: true
|
|
|
|
class FixTosName < ActiveRecord::Migration[4.2]
|
|
def up
|
|
execute <<~SQL
|
|
UPDATE user_fields
|
|
SET name = 'Terms of Service'
|
|
WHERE name = 'I have read and accept the <a href="/tos" target="_blank">Terms of Service</a>.'
|
|
SQL
|
|
end
|
|
end
|