femslash-city/migrations/099_follow_multi_index.rb

10 lines
174 B
Ruby
Raw Normal View History

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