trabajo-afectivo/db/migrate/20170203000003_do_not_import_onw_notifications_731.rb

19 lines
646 B
Ruby
Raw Normal View History

2017-09-08 08:28:34 +00:00
class DoNotImportOnwNotifications731 < ActiveRecord::Migration[4.2]
def up
# return if it's a new setup
return if !Setting.find_by(name: 'system_init_done')
Setting.create_if_not_exists(
title: 'Define postmaster filter.',
name: '0014_postmaster_filter_own_notification_loop_detection',
area: 'Postmaster::PreFilter',
description: 'Define postmaster filter to check if email is a own created notification email, then ignore it to prevent email loops.',
options: {},
state: 'Channel::Filter::OwnNotificationLoopDetection',
frontend: false
)
end
end