{"push_id":2622574260,"size":1,"distinct_size":1,"ref":"refs/heads/alias_child_joins","head":"7f0c07dc17dfc5fe1a9e8920b4bb460a3f5240e1","before":"39f9c6cb6fa8297c6f3d5e5d9b63bcd4db5336e3","commits":[{"sha":"7f0c07dc17dfc5fe1a9e8920b4bb460a3f5240e1","author":{"name":"Chalo Fernandez","email":"5b4a341655764d32469e9b2b284d6e040ca5b923@gmail.com"},"message":"Child joins should be aliased when merging relations\n\nRails 5.2 does not alias child joins, causing an error about duplicated table/fields:\n\n*Before this fix:*\n`\nSELECT ... FROM \"posts\" INNER JOIN \"authors\" ON ... INNER JOIN \"authors\" ON ...\n`\n\n*After this fix:*\n`\nSELECT ... FROM \"posts\" INNER JOIN \"authors\" ON ... INNER JOIN \"authors\" \"authors_categorizations\" ON ...\n`\n\nBefore 5.2, Rails aliased the joins, but wrongfully transformed them into a LEFT OUTER JOIN.\nThis fix will keep them as INNER JOINS, but make sure child joins are aliased, to avoid errors.","distinct":true,"url":"https://api.github.com/repos/chalofa/rails/commits/7f0c07dc17dfc5fe1a9e8920b4bb460a3f5240e1"}]}
{"actor":{"display_login":"chalofa"}}