debian-mirror-gitlab/db/migrate/20200228160542_create_ci_sources_projects.rb
2020-04-08 14:13:33 +05:30

17 lines
413 B
Ruby

# 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