FIX: add migration to replace 'blocked_by_staff' with 'silenced_by_staff'

This commit is contained in:
Arpit Jalan 2017-12-28 18:08:41 +05:30
parent 5ad1709dba
commit 5ca558c7c5
1 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,8 @@
class ReplaceBlockedSilenceTranslation < ActiveRecord::Migration[5.1]
def change
execute <<~SQL
UPDATE translation_overrides SET translation_key = 'system_messages.silenced_by_staff.subject_template' WHERE translation_key = 'system_messages.blocked_by_staff.subject_template';
UPDATE translation_overrides SET translation_key = 'system_messages.silenced_by_staff.text_body_template' WHERE translation_key = 'system_messages.blocked_by_staff.text_body_template';
SQL
end
end