Add indexes for timestamp to stats

This commit is contained in:
Kyle Drake 2015-06-17 14:30:05 -07:00
parent fb31f2de57
commit 964b4493f8

View file

@ -0,0 +1,13 @@
Sequel.migration do
up {
%i{stat_referrers stat_locations stat_paths} do |t|
DB.add_index t, :created_at
end
}
down {
%i{stat_referrers stat_locations stat_paths} do |t|
DB.drop_index t, :created_at
end
}
end