pools: add post_ids, is_deleted, category indexes.

This commit is contained in:
evazion
2019-09-07 23:06:20 -05:00
parent 57a61ca586
commit 3bd8a5c4e3
2 changed files with 30 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
class AddIndexesToPools < ActiveRecord::Migration[6.0]
def change
add_index :pools, :category
add_index :pools, :is_deleted
add_index :pools, :post_ids, using: :gin
end
end