discourse/db/migrate/20160308193142_rename_confirm_translation_key.rb

9 lines
515 B
Ruby
Raw Normal View History

2016-04-01 05:33:25 +08:00
class RenameConfirmTranslationKey < ActiveRecord::Migration
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