20210426184355_issue_3446_microsoft_365_tenants.rb 597 B

12345678910111213141516
  1. class Issue3446Microsoft365Tenants < ActiveRecord::Migration[5.2]
  2. def up
  3. return if !Setting.exists?(name: 'system_init_done')
  4. setting = Setting.find_by name: 'auth_microsoft_office365_credentials'
  5. setting.options[:form].push({
  6. display: 'App Tenant ID',
  7. null: true,
  8. name: 'app_tenant',
  9. tag: 'input',
  10. placeholder: 'common',
  11. })
  12. setting.save!
  13. end
  14. end