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.
2 parents 3859037 + 98e39b8 commit 767653aCopy full SHA for 767653a
activerecord/lib/active_record/relation/calculations.rb
@@ -322,7 +322,7 @@ def async_pick(*column_names)
322
# Returns the base model's ID's for the relation using the table's primary key
323
#
324
# 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
+ # Person.joins(:companies).ids # SELECT people.id FROM people INNER JOIN companies ON companies.id = people.company_id
326
def ids
327
if loaded?
328
result = records.pluck(*Array(primary_key))
0 commit comments