alphagov/transition — pull request #248 by issyl0 (2014-04-08 13:38:04+00:00)
Title: Delete session records from the database if they're over 25 hours old.

- This sets a schedule using the Whenever gem to run this rake task every day at 3am. 3am was chosen as an arbitrary time. If anyone has any other suggestions or times which they deem more sensible, do say!
- Twenty-five hours old was the suggestion in Transition's Pivotal story, so I used that.
- I haven't yet tested the scheduler as that would involve waiting until 3am, but the rake task itself works - the sessions table in my dev VM now has one row as opposed to the > 44000 it had before.