Rails include all “parent” records in where clause on nested includes

后端 未结 0 422
醉酒成梦
醉酒成梦 2021-01-23 10:00

I\'m trying to write a query like this:

Model.includes(other_models: still_more_models).where(still_more_models: { property: "X" }).find(1)
相关标签:
回答
  • 消灭零回复
提交回复
热议问题