0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-05 21:16:17 +08:00
discourse/db/migrate/20141014191645_fix_tos_name.rb

15 lines
351 B
Ruby
Vendored

# 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
def down
raise ActiveRecord::IrreversibleMigration
end
end