Does ash support multi tenancy with foreign key?
I search whole document but there is no place that mention multi tenancy with foreign key. Something like this in Ecto: https://hexdocs.pm/ecto/multi-tenancy-with-foreign-keys.html
5 Replies
You can use the
:attribute
multitenancy strategyThe example in the multitency guide shows a
belongs_to :organization, ...
plus attribute multitenancy on the :organization_id
Thanks Zach, I searched wrong keyword 😄
my pleasure 🙇