Account.find :all, :group => "last_name"will result in the following SQL:SELECT * FROM accounts GROUP BY last_name