neocities/migrations/069_add_stat_created_indexes.rb
2015-06-17 14:31:40 -07:00

13 lines
256 B
Ruby

Sequel.migration do
up {
%i{stat_referrers stat_locations stat_paths}.each do |t|
DB.add_index t, :created_at
end
}
down {
%i{stat_referrers stat_locations stat_paths}.each do |t|
DB.drop_index t, :created_at
end
}
end