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

# See https://docs.gitlab.com/ee/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.

class AddEncryptedErrorTrackingAccessToken < Gitlab::Database::Migration[2.0]
  disable_ddl_transaction!

  def up
    add_column :application_settings, :error_tracking_access_token_encrypted, :text, if_not_exists: true
    add_text_limit :application_settings, :error_tracking_access_token_encrypted, 255
  end

  def down
    remove_column :application_settings, :error_tracking_access_token_encrypted, if_exists: true
  end
end