In my appointments model, I want to order by a column called "when",
which is supposed to house the appointment date.
So im my model file appointment.rb I did this...
class Appointment < ActiveRecord::Base
default_scope :order => 'when'
and I got this error...
SQLite3::SQLException: near "when": syntax error: SELECT
"appointments".* FROM "appointments" ORDER BY when