Skip to content

Commit

Permalink
Reduce max column snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Oct 27, 2020
1 parent 8d26706 commit b02c13c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion guides/howtos/Multi tenancy with foreign keys.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,11 @@ end

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

add :org_id,
references(:orgs, column: :org_id),
null: false

timestamps()
end

Expand Down

0 comments on commit b02c13c

Please sign in to comment.