trabajo-afectivo/db/migrate/20210726065124_issue_3627_outdated_urls_security_page.rb

16 lines
560 B
Ruby
Raw Normal View History

# Copyright (C) 2012-2021 Zammad Foundation, http://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