summaryrefslogtreecommitdiff
path: root/db/migrate/20210303165301_add_not_null_constraint_to_cluster_token_name.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20210303165301_add_not_null_constraint_to_cluster_token_name.rb')
-rw-r--r--db/migrate/20210303165301_add_not_null_constraint_to_cluster_token_name.rb18
1 files changed, 0 insertions, 18 deletions
diff --git a/db/migrate/20210303165301_add_not_null_constraint_to_cluster_token_name.rb b/db/migrate/20210303165301_add_not_null_constraint_to_cluster_token_name.rb
deleted file mode 100644
index 5fc8970b8f9..00000000000
--- a/db/migrate/20210303165301_add_not_null_constraint_to_cluster_token_name.rb
+++ /dev/null
@@ -1,18 +0,0 @@
-# frozen_string_literal: true
-
-class AddNotNullConstraintToClusterTokenName < ActiveRecord::Migration[6.0]
- include Gitlab::Database::MigrationHelpers
-
- DOWNTIME = false
-
- disable_ddl_transaction!
-
- def up
- # This will add the `NOT NULL` constraint WITHOUT validating it
- add_not_null_constraint :cluster_agent_tokens, :name, validate: false
- end
-
- def down
- remove_not_null_constraint :cluster_agent_tokens, :name
- end
-end