trabajo-afectivo/db/migrate/20210426184355_issue_3446_microsoft_365_tenants.rb

19 lines
674 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/
class Issue3446Microsoft365Tenants < ActiveRecord::Migration[5.2]
def up
return if !Setting.exists?(name: 'system_init_done')
setting = Setting.find_by name: 'auth_microsoft_office365_credentials'
setting.options[:form].push({
display: 'App Tenant ID',
null: true,
name: 'app_tenant',
tag: 'input',
placeholder: 'common',
})
setting.save!
end
end