Skip to content

Commit b294a25

Browse files
Merge pull request rails#50617 from sampatbadhe/patch-12
Correct SQL query for User.all.explain docs [ci-skip]
2 parents fb56874 + 9300272 commit b294a25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/lib/active_record/relation.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ def find_or_initialize_by(attributes, &block)
294294
# ones printed by the database shell.
295295
#
296296
# User.all.explain
297-
# # EXPLAIN SELECT `cars`.* FROM `cars`
297+
# # EXPLAIN SELECT `users`.* FROM `users`
298298
# # ...
299299
#
300300
# Note that this method actually runs the queries, since the results of some

0 commit comments

Comments
 (0)