debian-mirror-gitlab/db/migrate/20211126142200_add_encrypted_static_object_token.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
526 B
Ruby
Raw Normal View History

2022-01-26 12:08:38 +05:30
# 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