Follow up for issue #2029 - fixed check if sipgate_config already is filled.

This commit is contained in:
Martin Edenhofer 2018-06-04 16:41:00 +02:00
parent 58ec1cbc8e
commit 89a46cf045

View file

@ -4,7 +4,7 @@ class Issue2029SipgateIntegrationEnable < ActiveRecord::Migration[5.1]
# return if it's a new setup # return if it's a new setup
return if !Setting.find_by(name: 'system_init_done') return if !Setting.find_by(name: 'system_init_done')
return if Setting.get(name: 'sipgate_config').present? return if Setting.get('sipgate_config').present?
Setting.create_or_update( Setting.create_or_update(
title: 'sipgate.io config', title: 'sipgate.io config',