summaryrefslogtreecommitdiff
path: root/db/migrate/20190516151857_add_lets_encrypt_private_key_to_application_settings.rb
blob: a2692ad32e93d03ba30ea9b7a533672d01579e01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.

class AddLetsEncryptPrivateKeyToApplicationSettings < ActiveRecord::Migration[5.1]
  include Gitlab::Database::MigrationHelpers

  # Set this constant to true if this migration requires downtime.
  DOWNTIME = false

  # rubocop:disable Migration/AddLimitToTextColumns
  def change
    add_column :application_settings, :encrypted_lets_encrypt_private_key, :text
    add_column :application_settings, :encrypted_lets_encrypt_private_key_iv, :text
  end
  # rubocop:enable Migration/AddLimitToTextColumns
end