fixed comment for example sql statement

Ref issue:
https://github.com/rails/rails/issues/47903
This commit is contained in:
Jodh Singh 2023-04-12 18:07:59 -04:00 committed by GitHub
parent 385903754e
commit 98e39b8a1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -322,7 +322,7 @@ def async_pick(*column_names)
# Returns the base model's ID's for the relation using the table's primary key
#
# Person.ids # SELECT people.id FROM people
# 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
def ids
if loaded?
result = records.pluck(*Array(primary_key))