0. ã¯ããã« Qiitaã¯ããããã¾ãã¾ãªã¨ããã§Railsã®ActiveRecordã®å é¨çµåãå¤é¨çµåã«é¢ããè¨äºãããã¾ãããããããã¾ã¨ã¾ã£ã¦åå¨ãã¦ããã¨è¯ããªãã¡ã¬ã³ã¹ã¨ãªãã®ã§ã¯ãªããã¨æãæ¬è¨äºãä½æãã¾ããã ã¾ããRails5ã§åä½ç¢ºèªãã¦ãããªãããRails5ãã追å ãããleft_outer_joinsãªã©ã¯è¼ãã¦ã¾ãããä»å¾ãè¼ãã¦ããããã¨æãã¾ãã group byããµãã¯ã¨ãªï¼å¯åãåããï¼ã«é¢ãã¦ã¯ä¸è¨ããåç §ãã ããã ActiveRecordã«ãããGROUP BYã®ä½¿ãæ¹ ActiveRecordã§ãµãã¯ã¨ãªï¼å¯åãåããï¼ã¨å é¨çµå 0-1. Rubyã¨Railsã¨PostgreSQLã®ãã¼ã¸ã§ã³ $ ruby -v ruby 2.2.4p230 (2015-12-16 revision 53155) [x86_64-darwin15] $ r
{{#tags}}- {{label}}
{{/tags}}