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

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

class AddEncryptedStaticObjectToken < Gitlab::Database::Migration[1.0]
  enable_lock_retries!

  def up
    # rubocop:disable Migration/AddLimitToTextColumns
    # limit is added in 20211126142354_add_text_limit_to_encrypted_static_object_token
    add_column :users, :static_object_token_encrypted, :text # rubocop:disable Migration/AddColumnsToWideTables
    # rubocop:enable Migration/AddLimitToTextColumns
  end

  def down
    remove_column :users, :static_object_token_encrypted
  end
end