debian-mirror-gitlab/db/migrate/20220830114228_create_dora_configuration_table.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
447 B
Ruby
Raw Normal View History

2022-10-11 01:57:18 +05:30
# frozen_string_literal: true
class CreateDoraConfigurationTable < Gitlab::Database::Migration[2.0]
disable_ddl_transaction!
def up
create_table :dora_configurations do |t|
t.references :project, null: false, index: { unique: true }, foreign_key: { on_delete: :cascade }
t.text :branches_for_lead_time_for_changes, null: false, array: true, default: []
end
end
def down
drop_table :dora_configurations
end
end