Revert "remove mpixel search, remove some unused indexes on posts"

This reverts commit 11e550c385.
This commit is contained in:
r888888888
2015-01-18 22:56:02 -08:00
parent 7ad7101bc2
commit 5063e326e3
7 changed files with 123 additions and 102 deletions

View File

@@ -1332,6 +1332,8 @@ class PostTest < ActiveSupport::TestCase
post3 = FactoryGirl.create(:post, :rating => "e", :score => 5, :image_width => 10_000)
relation = Post.tag_match("order:id")
assert_equal(post1.id, relation.first.id)
relation = Post.tag_match("order:mpixels")
assert_equal(post3.id, relation.first.id)
relation = Post.tag_match("order:landscape")
assert_equal(post3.id, relation.first.id)
end