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 0feecd2 + 31e62ff commit adfeb79Copy full SHA for adfeb79
activerecord/lib/active_record/relation/calculations.rb
@@ -363,7 +363,7 @@ def async_pick(*column_names)
363
# Returns the base model's ID's for the relation using the table's primary key
364
#
365
# Person.ids # SELECT people.id FROM people
366
- # Person.joins(:companies).ids # SELECT people.id FROM people INNER JOIN companies ON companies.id = people.company_id
+ # Person.joins(:company).ids # SELECT people.id FROM people INNER JOIN companies ON companies.id = people.company_id
367
def ids
368
primary_key_array = Array(primary_key)
369
0 commit comments