Skip to content

Commit

Permalink
create accredited_individuals_accredited_organizations table
Browse files Browse the repository at this point in the history
  • Loading branch information
holdenhinkle authored and jvcAdHoc committed Apr 17, 2024
1 parent fa3f42f commit 77c1ce1
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 77c1ce1

Please sign in to comment.