Skip to content

Commit

Permalink
Add org_id column setting on posts reference to orgs (#3458)
Browse files Browse the repository at this point in the history
  • Loading branch information
LostKobrakai committed Oct 27, 2020
1 parent e58209c commit 923dfd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/howtos/Multi tenancy with foreign keys.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ end

create table(:posts) do
add :title, :string
add :org_id, references(:orgs), null: false
add :org_id, references(:orgs, column: :org_id), null: false
timestamps()
end

Expand Down

0 comments on commit 923dfd8

Please sign in to comment.