Rails - how to convert output of find_by_sql (array) to an ActiveRecord relation?

后端 未结 0 670
时光说笑
时光说笑 2021-01-21 21:42

I am in a need of running a complex SQL query and because I didn\'t know how to construct the query using ActiveRecod, I had to use a raw SQL query by using find_by_sql

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