class IndexesYo < Weed::ActiveRecord::Migration
  def self.up
    add_index :cached_stats, [:period, :year, :month, :day, :bucket_id]
  end
  def self.down
    remove_index :cached_stats, [:period, :year, :month, :day, :bucket_id]
  end
end
Add some indexes for faster cache-stats queries
Add some indexes for faster cache-stats queries
