summaryrefslogtreecommitdiff
path: root/db/migrate/20191213143656_create_ci_pipelines_config.rb
blob: 92636f35d01d667a10485f1560a5057bffa3ffd1 (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
    end
  end
end