debian-mirror-gitlab/db/post_migrate/20210317155207_validate_not_null_constraint_on_cluster_token_name.rb
2021-04-29 21:17:54 +05:30

17 lines
316 B
Ruby

# 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