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