Flowdock
method

ids

Importance_1
v4.0.2 - Show latest stable - 0 notes - Class: ActiveRecord::Calculations
ids() public

Pluck all the 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
Show source
Register or log in to add new notes.