diff --git a/db/migrate/20171213105921_replace_invite_mailer_translation_override.rb b/db/migrate/20171213105921_replace_invite_mailer_translation_override.rb new file mode 100644 index 00000000000..0c12186e7b3 --- /dev/null +++ b/db/migrate/20171213105921_replace_invite_mailer_translation_override.rb @@ -0,0 +1,12 @@ +class ReplaceInviteMailerTranslationOverride < ActiveRecord::Migration[5.1] + def change + execute <<~SQL + UPDATE translation_overrides + SET value = replace(value, '%{invitee_name}', '%{inviter_name}') + WHERE translation_key IN ('invite_mailer.subject_template', 'invite_mailer.text_body_template', + 'invite_forum_mailer.subject_template', 'invite_forum_mailer.text_body_template', + 'custom_invite_mailer.subject_template', 'custom_invite_mailer.text_body_template', + 'custom_invite_forum_mailer.subject_template', 'custom_invite_forum_mailer.text_body_template'); + SQL + end +end