Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
RoyalIcing wants to merge3 commits intoash-project:main
base:main
Choose a base branch
Loading
fromRoyalIcing:doc-multitenancy

Conversation

@RoyalIcing
Copy link

Contributor checklist

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

@RoyalIcingRoyalIcing changed the titleDoc multitenancyDocs: multitenancy code exampleMay 30, 2025
<!--
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?

RoyalIcing reacted with thumbs up emoji
#Schema Based Multitenancy

```elixir
defmoduleMyApp.Projectdo
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

...

relationshipsdo
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 freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@zachdanielzachdanielzachdaniel left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@RoyalIcing@zachdaniel

[8]ページ先頭

©2009-2025 Movatter.jp