Moving rake tasks to model