2019-05-02 18:17:27 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-08-31 00:06:56 -04:00
|
|
|
class FixTosName < ActiveRecord::Migration[4.2]
|
2014-10-14 15:52:36 -04:00
|
|
|
def up
|
2019-05-22 10:13:30 -04:00
|
|
|
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
|
2014-10-14 15:52:36 -04:00
|
|
|
end
|
2024-10-25 03:13:06 -04:00
|
|
|
|
|
|
|
def down
|
|
|
|
raise ActiveRecord::IrreversibleMigration
|
|
|
|
end
|
2014-10-14 15:52:36 -04:00
|
|
|
end
|