summaryrefslogtreecommitdiff
path: root/db/migrate/20191213143656_create_ci_pipelines_config.rb
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