summaryrefslogtreecommitdiff
path: root/db/migrate/20201111110918_add_cloud_license_auth_token_application_settings_text_limit.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20201111110918_add_cloud_license_auth_token_application_settings_text_limit.rb')
-rw-r--r--db/migrate/20201111110918_add_cloud_license_auth_token_application_settings_text_limit.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/db/migrate/20201111110918_add_cloud_license_auth_token_application_settings_text_limit.rb b/db/migrate/20201111110918_add_cloud_license_auth_token_application_settings_text_limit.rb
new file mode 100644
index 00000000000..fd1ee5e07bf
--- /dev/null
+++ b/db/migrate/20201111110918_add_cloud_license_auth_token_application_settings_text_limit.rb
@@ -0,0 +1,17 @@
+# frozen_string_literal: true
+
+class AddCloudLicenseAuthTokenApplicationSettingsTextLimit < ActiveRecord::Migration[6.0]
+ include Gitlab::Database::MigrationHelpers
+
+ DOWNTIME = false
+
+ disable_ddl_transaction!
+
+ def up
+ add_text_limit :application_settings, :encrypted_cloud_license_auth_token_iv, 255
+ end
+
+ def down
+ remove_text_limit :application_settings, :encrypted_cloud_license_auth_token_iv
+ end
+end