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

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

class ValidateProtectedTagCreateAccessLevelsUserIdForeignKey < ActiveRecord::Migration[6.0]
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false
  CONSTRAINT_NAME = 'fk_protected_tag_create_access_levels_user_id'

  def up
    validate_foreign_key :protected_tag_create_access_levels, :user_id, name: CONSTRAINT_NAME
  end

  def down
    # no op
  end
end