fixes #3049 - ambiguous pluck(:id) on Rails 3.2.8 with PostgreSQL