trabajo-afectivo/db/migrate/20190419000001_setting_add_import_archive.rb

20 lines
615 B
Ruby
Raw Permalink Normal View History

2022-01-01 13:38:12 +00:00
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
2020-10-29 14:58:36 +00:00
class SettingAddImportArchive < ActiveRecord::Migration[5.1]
def change
# return if it's a new setup
return if !Setting.exists?(name: 'system_init_done')
Setting.create_if_not_exists(
title: 'Define postmaster filter.',
name: '0018_postmaster_import_archive',
area: 'Postmaster::PreFilter',
description: 'Define postmaster filter to import archive mailboxes.',
options: {},
state: 'Channel::Filter::ImportArchive',
frontend: false
)
end
end