trabajo-afectivo/db/migrate/20210726065124_issue_3627_outdated_urls_security_page.rb
2022-01-01 14:38:12 +01:00

15 lines
561 B
Ruby

# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
class Issue3627OutdatedUrlsSecurityPage < ActiveRecord::Migration[6.0]
def change
return if !Setting.exists?(name: 'system_init_done')
setting = Setting.find_by name: 'auth_google_oauth2'
setting.preferences[:description_i18n][2] = 'https://console.cloud.google.com/apis/credentials'
setting.save!
setting = Setting.find_by name: 'auth_microsoft_office365'
setting.preferences[:description_i18n][2] = 'https://portal.azure.com'
setting.save!
end
end