debian-mirror-gitlab/db/migrate/20191213143656_create_ci_pipelines_config.rb
2020-03-09 13:42:32 +05:30

14 lines
383 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
end
end
end