We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1be11a commit 859fbd2Copy full SHA for 859fbd2
activerecord/lib/active_record/relation/query_methods.rb
@@ -506,7 +506,7 @@ def with!(*args) # :nodoc:
506
#
507
# Post.with_recursive(post_and_replies: [Post.where(id: 42), Post.joins('JOIN post_and_replies ON posts.in_reply_to_id = post_and_replies.id')])
508
# # => ActiveRecord::Relation
509
- # # WITH post_and_replies AS (
+ # # WITH RECURSIVE post_and_replies AS (
510
# # (SELECT * FROM posts WHERE id = 42)
511
# # UNION ALL
512
# # (SELECT * FROM posts JOIN posts_and_replies ON posts.in_reply_to_id = posts_and_replies.id)
0 commit comments