So I have those relationships:
many_to_many(
:certifications,
Certification,
join_through: "certifier_certifications",
on_delete: :delete_all,
on_replace: :delete
)
many_to_many(
:active_certifications,
Certification,
join_through: "certifier_certifications",
where: [is_active: true]
)
Any chance I can define the :active_certifications
relationships over the :certifications
one?
Like:
many_to_many(
:active_certifications,
extend: :certifications,
where: [is_active: true]
)
Thanks