Data processing by rake task