index for follow_count/view/updated
This commit is contained in:
parent
04af230f8d
commit
baf9b6100d
9
migrations/099_follow_multi_index.rb
Normal file
9
migrations/099_follow_multi_index.rb
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
Sequel.migration do
|
||||||
|
up {
|
||||||
|
DB.add_index :sites, [:follow_count, :views, :updated_at]
|
||||||
|
}
|
||||||
|
|
||||||
|
down {
|
||||||
|
DB.drop_index :sites, [:follow_count, :views, :updated_at]
|
||||||
|
}
|
||||||
|
end
|
Loading…
x
Reference in New Issue
Block a user