20190419000001_setting_add_import_archive.rb 615 B

12345678910111213141516171819
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. class SettingAddImportArchive < ActiveRecord::Migration[5.1]
  3. def change
  4. # return if it's a new setup
  5. return if !Setting.exists?(name: 'system_init_done')
  6. Setting.create_if_not_exists(
  7. title: 'Define postmaster filter.',
  8. name: '0018_postmaster_import_archive',
  9. area: 'Postmaster::PreFilter',
  10. description: 'Define postmaster filter to import archive mailboxes.',
  11. options: {},
  12. state: 'Channel::Filter::ImportArchive',
  13. frontend: false
  14. )
  15. end
  16. end