Skip to content

Commit 767653a

Browse files
authored
Merge pull request rails#47929 from jetjodh/patch-1
fixed comment for example sql statement
2 parents 3859037 + 98e39b8 commit 767653a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/lib/active_record/relation/calculations.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ def async_pick(*column_names)
322322
# Returns the base model's ID's for the relation using the table's primary key
323323
#
324324
# Person.ids # SELECT people.id FROM people
325-
# Person.joins(:companies).ids # SELECT people.id FROM people INNER JOIN companies ON companies.person_id = people.id
325+
# Person.joins(:companies).ids # SELECT people.id FROM people INNER JOIN companies ON companies.id = people.company_id
326326
def ids
327327
if loaded?
328328
result = records.pluck(*Array(primary_key))

0 commit comments

Comments
 (0)