2019-12-23 19:07:31 -05:00
|
|
|
# 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 }
|
2020-04-21 11:21:10 -04:00
|
|
|
t.text :content, null: false # rubocop:disable Migration/AddLimitToTextColumns
|
2019-12-23 19:07:31 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|