Fixed migration.
This commit is contained in:
parent
bf8c670b8f
commit
69e8cb1769
1 changed files with 3 additions and 0 deletions
|
@ -1,5 +1,8 @@
|
|||
class UpdateSettingCti < ActiveRecord::Migration
|
||||
def up
|
||||
# return if it's a new setup
|
||||
return if !Setting.find_by(name: 'system_init_done')
|
||||
|
||||
setting = Setting.find_by(name: 'sipgate_integration')
|
||||
setting.frontend = true
|
||||
setting.preferences[:authentication] = true
|
||||
|
|
Loading…
Reference in a new issue