femslash-city/migrations/009_add_indexes.rb

9 lines
141 B
Ruby
Raw Normal View History

Sequel.migration do
up {
DB.add_index :sites, [:hits, :created_at]
}
down {
DB.drop_index :sites, [:hits, :created_at]
}
end