-
-
Notifications
You must be signed in to change notification settings - Fork 99
Docs: multitenancy code example #558
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
@@ -1,28 +1,29 @@ | |||
<!-- | |||
This file was generated by Spark. Do not edit it by hand. | |||
--> | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changes to this file seem strange. This file is generated. Did you maybe run a formatter on it by accident?
@@ -1,5 +1,21 @@ | |||
# Schema Based Multitenancy | |||
|
|||
```elixir | |||
defmodule MyApp.Project do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
defmodule MyApp.Project do | |
defmodule MyApp.Projects.Project do |
... | ||
|
||
relationships do | ||
belongs_to :organization, MyApp.Organization |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
belongs_to :organization, MyApp.Organization | |
belongs_to :organization, MyApp.Accounts.Organization |
Contributor checklist