Added migration to correct send_no_auto_response_reg_exp value. It's already changed in db/seeds/settings.rb

This commit is contained in:
Martin Edenhofer 2017-09-27 10:40:39 +02:00
parent 14d4b90f72
commit 88feeb38ba

View file

@ -0,0 +1,12 @@
class SettingSendNoAutoResponseRegExp < ActiveRecord::Migration[5.0]
def up
# return if it's a new setup
return if !Setting.find_by(name: 'system_init_done')
# improved domain name matching
return if !Setting.find_by(name: 'send_no_auto_response_reg_exp')
Setting.set('send_no_auto_response_reg_exp', '(mailer-daemon|postmaster|abuse|root|noreply|noreply.+?|no-reply|no-reply.+?)@.+?')
end
end