Skip to content

Commit aa66aec

Browse files
authored
Merge pull request rails#55213 from Yuhi-Sato/fix-typo-with-recursive-example
[ci skip] Fix typo in with_recursive example
2 parents 1921f0f + a3186ca commit aa66aec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/lib/active_record/relation/query_methods.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ def with!(*args) # :nodoc:
510510
# # WITH RECURSIVE post_and_replies AS (
511511
# # (SELECT * FROM posts WHERE id = 42)
512512
# # UNION ALL
513-
# # (SELECT * FROM posts JOIN posts_and_replies ON posts.in_reply_to_id = posts_and_replies.id)
513+
# # (SELECT * FROM posts JOIN post_and_replies ON posts.in_reply_to_id = post_and_replies.id)
514514
# # )
515515
# # SELECT * FROM posts
516516
#

0 commit comments

Comments
 (0)