summaryrefslogtreecommitdiff
path: root/db/migrate/20210224133337_add_name_field_to_cluster_agent_token.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20210224133337_add_name_field_to_cluster_agent_token.rb')
-rw-r--r--db/migrate/20210224133337_add_name_field_to_cluster_agent_token.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/db/migrate/20210224133337_add_name_field_to_cluster_agent_token.rb b/db/migrate/20210224133337_add_name_field_to_cluster_agent_token.rb
new file mode 100644
index 00000000000..2cec37f8477
--- /dev/null
+++ b/db/migrate/20210224133337_add_name_field_to_cluster_agent_token.rb
@@ -0,0 +1,12 @@
+# frozen_string_literal: true
+
+class AddNameFieldToClusterAgentToken < ActiveRecord::Migration[6.0]
+ DOWNTIME = false
+
+ # rubocop:disable Migration/AddLimitToTextColumns
+ # limit is added in LimitClusterTokenSize
+ def change
+ add_column :cluster_agent_tokens, :name, :text
+ end
+ # rubocop:enable Migration/AddLimitToTextColumns
+end