20230823082823_update_format_settings.rb 415 B

1234567891011
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class UpdateFormatSettings < ActiveRecord::Migration[6.1]
  3. def change
  4. # return if it's a new setup
  5. return if !Setting.exists?(name: 'system_init_done')
  6. Setting.find_by(name: 'ticket_define_email_from').update!(frontend: true)
  7. Setting.find_by(name: 'ticket_define_email_from_separator').update!(frontend: true)
  8. end
  9. end