diff options
Diffstat (limited to 'db/migrate/20211126142354_add_text_limit_to_encrypted_static_object_token.rb')
-rw-r--r-- | db/migrate/20211126142354_add_text_limit_to_encrypted_static_object_token.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/db/migrate/20211126142354_add_text_limit_to_encrypted_static_object_token.rb b/db/migrate/20211126142354_add_text_limit_to_encrypted_static_object_token.rb new file mode 100644 index 00000000000..a43e7d9a741 --- /dev/null +++ b/db/migrate/20211126142354_add_text_limit_to_encrypted_static_object_token.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +class AddTextLimitToEncryptedStaticObjectToken < Gitlab::Database::Migration[1.0] + disable_ddl_transaction! + + def up + add_text_limit :users, :static_object_token_encrypted, 255 + end + + def down + remove_text_limit :users, :static_object_token_encrypted + end +end |