ExTenant.Schema.tenanted_schema
You're seeing just the macro
tenanted_schema
, go back to ExTenant.Schema module for more information.
Replaces Ecto.Schema.schema/2
- checking whether tenanted()
has been
called - that injects the belongs_to
tenant relationship