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

13 lines
389 B
Ruby

# frozen_string_literal: true
class AddTextLimitForStaticObjectsExternalStorageAuthToken < Gitlab::Database::Migration[1.0]
disable_ddl_transaction!
def up
add_text_limit :application_settings, :static_objects_external_storage_auth_token_encrypted, 255
end
def down
remove_text_limit :application_settings, :static_objects_external_storage_auth_token_encrypted
end
end