summaryrefslogtreecommitdiff
path: root/db/migrate/20191122161519_create_sentry_issues_table.rb
blob: 753286b60250d960ea324c39304805a28abd3329 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

class CreateSentryIssuesTable < ActiveRecord::Migration[5.2]
  DOWNTIME = false

  def change
    create_table :sentry_issues do |t|
      t.references :issue,
        foreign_key: { on_delete: :cascade },
        index: { unique: true },
        null: false
      t.bigint :sentry_issue_identifier, null: false
    end
  end
end