Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20180315160435_add_external_auth_mutual_tls_fields_to_project_settings.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c379d207ff01798539f4122ced842841ea371931 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
class AddExternalAuthMutualTlsFieldsToProjectSettings < ActiveRecord::Migration[4.2]
  DOWNTIME = false

  def change
    # rubocop:disable Migration/AddLimitToStringColumns
    add_column :application_settings,
               :external_auth_client_cert, :text
    add_column :application_settings,
               :encrypted_external_auth_client_key, :text
    add_column :application_settings,
               :encrypted_external_auth_client_key_iv, :string
    add_column :application_settings,
               :encrypted_external_auth_client_key_pass, :string
    add_column :application_settings,
               :encrypted_external_auth_client_key_pass_iv, :string
    # rubocop:enable Migration/AddLimitToStringColumns
  end
end