blob: 9a9cb0d9487816edc74ae6b1c18852b344d0b179 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# frozen_string_literal: true
class ValidateFkOnCiJobArtifactsPartitionIdAndJobId < Gitlab::Database::Migration[2.1]
TABLE_NAME = :ci_job_artifacts
FK_NAME = :fk_rails_c5137cb2c1_p
COLUMNS = [:partition_id, :job_id]
def up
validate_foreign_key(TABLE_NAME, COLUMNS, name: FK_NAME)
end
def down
# no-op
end
end
|