Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20230901044003_add_sync_foreign_key_for_ci_pipeline_variables_pipeline_id.rb « post_migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d640b68c118a8591e0dc3f5645a97af59e76bdf5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

class AddSyncForeignKeyForCiPipelineVariablesPipelineId < Gitlab::Database::Migration[2.1]
  TABLE_NAME = :ci_pipeline_variables
  COLUMN_NAME = :pipeline_id
  FK_NAME = :temp_fk_rails_8d3b04e3e1

  def up
    validate_foreign_key TABLE_NAME, COLUMN_NAME, name: FK_NAME
  end

  def down
    # no-op
  end
end