diff --git a/db/migrate/20171004122538_index_product_id_and_approved.rb b/db/migrate/20171004122538_index_product_id_and_approved.rb new file mode 100644 index 00000000..b65f4c17 --- /dev/null +++ b/db/migrate/20171004122538_index_product_id_and_approved.rb @@ -0,0 +1,5 @@ +class IndexProductIdAndApproved < ActiveRecord::Migration[5.1] + def change + add_index :spree_reviews, [:approved, :product_id] + end +end