20221220095750_issue_4434_github_rename.rb 427 B

1234567891011121314
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class Issue4434GitHubRename < ActiveRecord::Migration[6.1]
  3. def change
  4. # return if it's a new setup
  5. return if !Setting.exists?(name: 'system_init_done')
  6. setting = Setting.find_by name: 'auth_github'
  7. setting.preferences[:title_i18n][0] = 'GitHub'
  8. setting.preferences[:description_i18n][0] = 'GitHub'
  9. setting.save!
  10. end
  11. end