Christof Spies said over 6 years ago on ActiveRecord Tricks :
use `.ids` instead of `.pluck(:id)` ;)