Method: ApplicationRecord.pluck_primary_key
- Defined in:
- app/models/application_record.rb
.pluck_primary_key ⇒ Object
It is strongly suggested use the .ids method instead.
User.ids # => returns all the user IDs
User.where(...).ids # => returns the IDs of records matching the where clause.
32 |
# File 'app/models/application_record.rb', line 32 alias_method :pluck_primary_key, :ids |