Update all with a selected child values (sql format)

后端 未结 0 1196
余生分开走
余生分开走 2020-12-22 03:40

I\'m trying to write an sql query for an update_all migration. I Saw different way to achieve and I need to do something like this :

Post.joins(:messages).upd         


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