def aggregate_and_create(oftype, ts = Time.now.floor)
      Octo::Enterprise.each do |enterprise|
        calculate(enterprise.id, oftype, ts)
      end
    end
def aggregate_and_create(oftype, ts = Time.now.floor)
      Octo::Enterprise.each do |enterprise|
        calculate(enterprise.id, oftype, ts)
      end
    end
Aggregates and creates trends for all the enterprises for a specific
   trend type at a specific timestamp
 @param [Fixnum] oftype The type of trend to be calculated
 @param [Time] ts The time at which trend needs to be calculated