add index for slow featured_at query

This commit is contained in:
Kyle Drake 2019-01-26 22:45:29 +00:00
parent a2677bb930
commit 687a134207

View file

@ -0,0 +1,9 @@
Sequel.migration do
up {
DB.add_index :sites, :featured_at
}
down {
DB.drop_index :sites, :featured_at
}
end