Rails / ransack scope to return one parent row for multiple child rows with conditions

前端 未结 0 1632
北荒
北荒 2021-01-20 19:49

I\'m using rails (5.2.4.3), ransack, and postgres with the following simplified db schema:

Buildings
- id

BuildingSegments
- id
- building_id
- name
<         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题