neocities/migrations/099_follow_multi_index.rb
2017-04-02 21:26:03 -07:00

9 lines
174 B
Ruby

Sequel.migration do
up {
DB.add_index :sites, [:follow_count, :views, :updated_at]
}
down {
DB.drop_index :sites, [:follow_count, :views, :updated_at]
}
end