index for suggestions, only load when needed

This commit is contained in:
Kyle Drake 2019-10-30 13:18:10 -07:00
parent ae3df1d0f9
commit 16673f0111
4 changed files with 11 additions and 4 deletions

View file

@ -0,0 +1,9 @@
Sequel.migration do
up {
DB.add_index :sites, [:follow_count, :updated_at, :views]
}
down {
DB.drop_index :sites, [:follow_count, :updated_at, :views]
}
end