def duration
        self.end_time - self.start_time
      end
# FIXME discuss whether we should let people change history
# I'm in favour of leaving things as flexible as possible (@ali-graham)
before_destroy :only_destroy_future
def only_destroy_future
(self.start_time.to_i - Time.now.to_i) > 0
end