Skip to content

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

RoyalIcing
Copy link

Contributor checklist

  • Documentation
  • Bug fixes include regression tests
  • Features include unit/acceptance tests

@RoyalIcing RoyalIcing changed the title Doc multitenancy Docs: multitenancy code example May 30, 2025
@@ -1,28 +1,29 @@
<!--
This file was generated by Spark. Do not edit it by hand.
-->

Copy link
Contributor

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
defmodule MyApp.Project do
defmodule MyApp.Projects.Project do

...

relationships do
belongs_to :organization, MyApp.Organization
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
belongs_to :organization, MyApp.Organization
belongs_to :organization, MyApp.Accounts.Organization

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants