Hacker News new | ask | show | jobs
by durkie 932 days ago
That's correct. If i run `User.limit(5).pluck(:id)` the query it runs is `SELECT "users"."id" FROM "users" LIMIT $1 [["LIMIT", 5]]` and returns an array, not an ActiveRecord association
1 comments

You can also do `User.limit(5).ids` which does the same thing.