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

20191103202505_add_eks_credentials_to_application_settings.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3a167b4c67f1e1f43377867c2f1349cb8cd55103 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

class AddEksCredentialsToApplicationSettings < ActiveRecord::Migration[5.2]
  # Set this constant to true if this migration requires downtime.
  DOWNTIME = false

  def change
    add_column :application_settings, :eks_integration_enabled, :boolean, null: false, default: false
    add_column :application_settings, :eks_account_id, :string, limit: 128
    add_column :application_settings, :eks_access_key_id, :string, limit: 128
    add_column :application_settings, :encrypted_eks_secret_access_key_iv, :string, limit: 255
    add_column :application_settings, :encrypted_eks_secret_access_key, :text
  end
end