debian-mirror-gitlab/db/post_migrate/20230227153231_validate_fk_on_ci_job_variables_partition_id_and_job_id.rb
2023-05-27 22:25:52 +05:30

16 lines
334 B
Ruby

# frozen_string_literal: true
class ValidateFkOnCiJobVariablesPartitionIdAndJobId < Gitlab::Database::Migration[2.1]
TABLE_NAME = :ci_job_variables
FK_NAME = :fk_rails_fbf3b34792_p
COLUMNS = [:partition_id, :job_id]
def up
validate_foreign_key(TABLE_NAME, COLUMNS, name: FK_NAME)
end
def down
# no-op
end
end