discourse/db/migrate/20160308193142_rename_confi...

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
551 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class RenameConfirmTranslationKey < ActiveRecord::Migration[4.2]
def change
execute "UPDATE translation_overrides SET translation_key = 'user_notifications.confirm_new_email.subject_template'
WHERE translation_key = 'user_notifications.authorize_email.subject_template'"
execute "UPDATE translation_overrides SET translation_key = 'user_notifications.confirm_new_email.text_body_template'
WHERE translation_key = 'user_notifications.authorize_email.text_body_template'"
end
end