Posts by kolrie • 101 points
1 post
-
0
votes2
answers445
viewsQ: How to query a polymorphic relationship in Rails 3/4?
I have a table jobs and a table activities. A Job can have several Activities. The relationship is polymorphic. Tables: job activities ----------- ------------- id id ... target_id target_type ...…