From d54fded536cdd85033e02adcd74c0a8a523d201e Mon Sep 17 00:00:00 2001 From: Phil Coggins Date: Tue, 14 Jul 2020 07:22:00 -0600 Subject: [PATCH] Docs: ActiveRecord::QueryMethods#joins Fixes SQL output --- activerecord/lib/active_record/relation/query_methods.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/activerecord/lib/active_record/relation/query_methods.rb b/activerecord/lib/active_record/relation/query_methods.rb index 6e99656387..b162ad14d7 100644 --- a/activerecord/lib/active_record/relation/query_methods.rb +++ b/activerecord/lib/active_record/relation/query_methods.rb @@ -503,8 +503,7 @@ def unscope!(*args) # :nodoc: # # SELECT "users".* # # FROM "users" # # INNER JOIN "posts" ON "posts"."user_id" = "users"."id" - # # INNER JOIN "comments" "comments_posts" - # # ON "comments_posts"."post_id" = "posts"."id" + # # INNER JOIN "comments" ON "comments"."post_id" = "posts"."id" # # You can use strings in order to customize your joins: #