debian-mirror-gitlab/db/migrate/20210922215740_create_issue_customer_relations_contacts.rb

15 lines
462 B
Ruby
Raw Normal View History

2021-11-18 22:05:49 +05:30
# 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