debian-mirror-gitlab/db/migrate/20220706191627_add_encrypted_error_tracking_access_token.rb
2022-08-13 15:12:31 +05:30

18 lines
597 B
Ruby

# 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