debian-mirror-gitlab/db/migrate/20191213143656_create_ci_pipelines_config.rb
2020-05-24 23:13:21 +05:30

15 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