Skip to content

Commit

Permalink
Merge pull request rails#50617 from sampatbadhe/patch-12
Browse files Browse the repository at this point in the history
Correct SQL query for User.all.explain docs [ci-skip]
  • Loading branch information
jonathanhefner authored Jan 6, 2024
2 parents fb56874 + 9300272 commit b294a25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/relation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ def find_or_initialize_by(attributes, &block)
# ones printed by the database shell.
#
# User.all.explain
# # EXPLAIN SELECT `cars`.* FROM `cars`
# # EXPLAIN SELECT `users`.* FROM `users`
# # ...
#
# Note that this method actually runs the queries, since the results of some
Expand Down

0 comments on commit b294a25

Please sign in to comment.