def trendable
      key :type, Integer
      key :ts, Time
      key :rank, Integer

      key :score, Float
      key :uid, String

      generate_aggregators { |ts, method|
        trendtype = method_names_type_counter(method)
        aggregate_and_create trendtype, ts
      }

    end
def trendable
      key :type, Integer
      key :ts, Time
      key :rank, Integer

      key :score, Float
      key :uid, String

      generate_aggregators { |ts, method|
        trendtype = method_names_type_counter(method)
        aggregate_and_create trendtype, ts
      }

    end
Define the columns needed for Trends