diff options
Diffstat (limited to 'db/post_migrate/20210317155207_validate_not_null_constraint_on_cluster_token_name.rb')
-rw-r--r-- | db/post_migrate/20210317155207_validate_not_null_constraint_on_cluster_token_name.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/db/post_migrate/20210317155207_validate_not_null_constraint_on_cluster_token_name.rb b/db/post_migrate/20210317155207_validate_not_null_constraint_on_cluster_token_name.rb new file mode 100644 index 00000000000..b77523c3a44 --- /dev/null +++ b/db/post_migrate/20210317155207_validate_not_null_constraint_on_cluster_token_name.rb @@ -0,0 +1,16 @@ +# frozen_string_literal: true + +class ValidateNotNullConstraintOnClusterTokenName < ActiveRecord::Migration[6.0] + include Gitlab::Database::MigrationHelpers + DOWNTIME = false + + disable_ddl_transaction! + + def up + validate_not_null_constraint :cluster_agent_tokens, :name + end + + def down + # no-op + end +end |