debian-mirror-gitlab/db/migrate/20201002012659_add_issuable_sla_table.rb
2021-01-03 14:25:43 +05:30

12 lines
332 B
Ruby

# frozen_string_literal: true
class AddIssuableSlaTable < ActiveRecord::Migration[6.0]
DOWNTIME = false
def change
create_table :issuable_slas do |t|
t.references :issue, null: false, index: { unique: true }, foreign_key: { on_delete: :cascade }
t.datetime_with_timezone :due_at, null: false
end
end
end