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

20210922215740_create_issue_customer_relations_contacts.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2d89d295608fb9aa05f633c1dd41da684aeefecd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

class CreateIssueCustomerRelationsContacts < Gitlab::Database::Migration[1.0]
  def change
    create_table :issue_customer_relations_contacts do |t|
      t.bigint :issue_id, null: false
      t.bigint :contact_id, null: false
      t.timestamps_with_timezone null: false

      t.index :contact_id
      t.index [:issue_id, :contact_id], unique: true, name: :index_issue_crm_contacts_on_issue_id_and_contact_id
    end
  end
end