Skip to content

Commit 9300272

Browse files
committed
Correct SQL query for User.all.explain docs [ci skip]
1 parent fb56874 commit 9300272

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)