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

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

class CreateCiPipelinesConfig < ActiveRecord::Migration[5.2]
  DOWNTIME = false

  def change
    create_table :ci_pipelines_config, id: false do |t|
      t.references :pipeline,
                   primary_key: true,
                   foreign_key: { to_table: :ci_pipelines, on_delete: :cascade }
      t.text :content, null: false # rubocop:disable Migration/AddLimitToTextColumns
    end
  end
end