Skip to content
This repository was archived by the owner on Dec 19, 2021. It is now read-only.

Conversation

@NickSchimek
Copy link
Member

Updates to use a has_one relationship. Tenant has one lease.

This is done by defining the tenant_id field on the Lease table
to be unique so that only one lease record can be inserted for a tenant,
and by changing the relationship not to return a collection object.

Updates to use a has_one relationship. Tenant has one lease.

This is done by defining the tenant_id field on the Lease table
to be unique so that only one lease record can be inserted for a tenant,
and by changing the relationship not to return a collection object.
@NickSchimek NickSchimek self-assigned this Oct 25, 2021
@NickSchimek NickSchimek merged commit d3c94d9 into development Oct 25, 2021
@NickSchimek NickSchimek deleted the change_lease_to_one_to_one_relationship branch October 25, 2021 12:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants