Polymorphic association with many belongs to one

28 Views Asked by At

I'm having this subscription table and this subscription table can have_many orders, and can have_many appointments.

I was trying to create an polymorphic association so that subscription.subscribables should give all the orders and appointments associated with this subscription.

How to achieve this?

I tried adding polymorphic association at subscription table but later I got stuck

0

There are 0 best solutions below