feat: add groups resource #371
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
8e9fbe76cf
commit
6db64bf996
12 changed files with 742 additions and 18 deletions
|
|
@ -582,6 +582,12 @@ defmodule Mv.Membership.Member do
|
|||
|
||||
# has_many: All fee cycles for this member
|
||||
has_many :membership_fee_cycles, Mv.MembershipFees.MembershipFeeCycle
|
||||
|
||||
# Groups relationships
|
||||
# has_many: All member-group associations for this member
|
||||
has_many :member_groups, Mv.Membership.MemberGroup
|
||||
# many_to_many: All groups this member belongs to (through MemberGroup)
|
||||
many_to_many :groups, Mv.Membership.Group, through: Mv.Membership.MemberGroup
|
||||
end
|
||||
|
||||
calculations do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue