summaryrefslogtreecommitdiff
path: root/db/migrate/20210216193620_add_description_to_cluster_token.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20210216193620_add_description_to_cluster_token.rb')
-rw-r--r--db/migrate/20210216193620_add_description_to_cluster_token.rb21
1 files changed, 0 insertions, 21 deletions
diff --git a/db/migrate/20210216193620_add_description_to_cluster_token.rb b/db/migrate/20210216193620_add_description_to_cluster_token.rb
deleted file mode 100644
index 67f7c6bd522..00000000000
--- a/db/migrate/20210216193620_add_description_to_cluster_token.rb
+++ /dev/null
@@ -1,21 +0,0 @@
-# frozen_string_literal: true
-
-class AddDescriptionToClusterToken < ActiveRecord::Migration[6.0]
- include Gitlab::Database::MigrationHelpers
-
- DOWNTIME = false
-
- disable_ddl_transaction!
-
- def up
- unless column_exists?(:cluster_agent_tokens, :description)
- add_column :cluster_agent_tokens, :description, :text
- end
-
- add_text_limit :cluster_agent_tokens, :description, 1024
- end
-
- def down
- remove_column :cluster_agent_tokens, :description
- end
-end