diff --git a/migrations/069_add_stat_created_indexes.rb b/migrations/069_add_stat_created_indexes.rb new file mode 100644 index 00000000..bc5a6741 --- /dev/null +++ b/migrations/069_add_stat_created_indexes.rb @@ -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