Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20201002012659_add_issuable_sla_table.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c43187bf93aab1cd2ab7da330f4de600593ed987 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# 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