gitlab-org--gitlab-foss/db/migrate/20191213143656_create_ci_pipelines_config.rb

14 lines
433 B
Ruby

# 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