Search Refactor: Remove some manual SQL, make search data tables more idomatic Rails/AR

This commit is contained in:
Robin Ward
2013-05-22 15:33:33 -04:00
parent b9a310f4b1
commit 7a31630837
10 changed files with 72 additions and 30 deletions

View File

@@ -0,0 +1,5 @@
class PostSearchData < ActiveRecord::Base
belongs_to :post
validates_presence_of :search_data
end