def trendable
      key :type, :int
      key :ts, :timestamp
      key :rank, :int

      column :score, :float
      column :uid, :text

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

    end
def trendable
      key :type, :int
      key :ts, :timestamp
      key :rank, :int

      column :score, :float
      column :uid, :text

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

    end
Define the columns needed for Trends