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

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

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

  DOWNTIME = false

  def change
    create_table :ci_sources_projects do |t|
      t.bigint :pipeline_id, null: false
      t.bigint :source_project_id, null: false

      t.index [:source_project_id, :pipeline_id], unique: true
      t.index :pipeline_id
    end
  end
end