neocities/migrations/069_add_stat_created_indexes.rb
2015-06-17 14:30:05 -07:00

13 lines
246 B
Ruby

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