debian-mirror-gitlab/db/migrate/20191213143656_create_ci_pipelines_config.rb

15 lines
433 B
Ruby
Raw Normal View History

2020-03-13 15:44:24 +05:30
# 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-05-24 23:13:21 +05:30
t.text :content, null: false # rubocop:disable Migration/AddLimitToTextColumns
2020-03-13 15:44:24 +05:30
end
end
end