Skip to content

Commit

Permalink
Create accredited_individuals_accredited_organizations table (#16297)
Browse files Browse the repository at this point in the history
* create accredited_individuals_accredited_organizations table

* fix references in migration and run it

---------

Co-authored-by: Jonathan VanCourt <[email protected]>
  • Loading branch information
holdenhinkle and jvcAdHoc authored Apr 18, 2024
1 parent 9117e9a commit 92bc70a
Show file tree
Hide file tree
Showing 2 changed files with 21 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_individual, type: :uuid, foreign_key: true, null: false
t.references :accredited_organization, 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
10 changes: 10 additions & 0 deletions db/schema.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 92bc70a

Please sign in to comment.