debian-mirror-gitlab/db/migrate/20201002012659_add_issuable_sla_table.rb

13 lines
332 B
Ruby
Raw Normal View History

2021-01-03 14:25:43 +05:30
# 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