Pluck all the ID's - shortcut
July, 2020
Pluck all the ID's for the ActiveRecord relation using the table's primary key
User.ids
# the same as:
User.pluck(:id)
#=> SELECT users.id FROM users
Pluck all the ID's for the ActiveRecord relation using the table's primary key
User.ids
# the same as:
User.pluck(:id)
#=> SELECT users.id FROM users