From 77c1ce1b4b75a140fbe4d0e55e6e0732bc0e2392 Mon Sep 17 00:00:00 2001 From: Holden Hinkle Date: Thu, 11 Apr 2024 12:35:49 -0400 Subject: [PATCH] create accredited_individuals_accredited_organizations table --- ...accredited_individuals_accredited_organizations.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 db/migrate/20240411161733_create_accredited_individuals_accredited_organizations.rb diff --git a/db/migrate/20240411161733_create_accredited_individuals_accredited_organizations.rb b/db/migrate/20240411161733_create_accredited_individuals_accredited_organizations.rb new file mode 100644 index 00000000000..65d280bbfe2 --- /dev/null +++ b/db/migrate/20240411161733_create_accredited_individuals_accredited_organizations.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +class CreateAccreditedIndividualsAccreditedOrganizations < ActiveRecord::Migration[7.1] + def change + create_table :accredited_individuals_accredited_organizations do |t| + t.references :accredited_individuals, type: :uuid, foreign_key: true, null: false + t.references :accredited_organizations, type: :uuid, foreign_key: true, null: false + t.index %i[ accredited_individual_id accredited_organization_id ], name: 'index_accredited_on_indi_and_org_ids', unique: true + end + end +end