debian-mirror-gitlab/db/migrate/20211126142200_add_encrypted_static_object_token.rb
2022-01-26 12:08:38 +05:30

16 lines
526 B
Ruby

# 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