20210426184355_issue_3446_microsoft_365_tenants.rb 674 B

123456789101112131415161718
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. class Issue3446Microsoft365Tenants < ActiveRecord::Migration[5.2]
  3. def up
  4. return if !Setting.exists?(name: 'system_init_done')
  5. setting = Setting.find_by name: 'auth_microsoft_office365_credentials'
  6. setting.options[:form].push({
  7. display: 'App Tenant ID',
  8. null: true,
  9. name: 'app_tenant',
  10. tag: 'input',
  11. placeholder: 'common',
  12. })
  13. setting.save!
  14. end
  15. end