Skip to content

Commit

Permalink
fix references in migration and run it
Browse files Browse the repository at this point in the history
  • Loading branch information
jvcAdHoc committed Apr 17, 2024
1 parent 77c1ce1 commit aaf521d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
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.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
Expand Down
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 aaf521d

Please sign in to comment.