20190903165443_issue_2595_gitlab_placeholder.rb 426 B

123456789101112
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. class Issue2595GitLabPlaceholder < ActiveRecord::Migration[5.2]
  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_gitlab_credentials')
  7. setting.options['form'].last['placeholder'] = 'https://gitlab.YOURDOMAIN.com/api/v4/'
  8. setting.save!
  9. end
  10. end