Model.find(:all) - return a list of ids

You'll have to write a bit of SQL for this, since it's not really a
common operation. You can use the #select_values method of the
connection object:

  Widget.connection.select_values("select id from widgets")