Rafał Jaroszewicz

Day: December 14, 2022

Specifying a polymorphic has_many through: association in Rails

In my recent project that I’m working on I faced this problem where I have a Client model and two different models for properties, Sale and Rental. To avoid having multiple tables for ClientSales and ClientRentals I wanted to just have ClientProperties, and for that I need a polymorphic has_many through: In Ruby on Rails, […]

Back to top