Add search form for hidden content

Added search for comments and proposal_notifications, added tsv column
for search and rake tasks to update/create tsv vector.
This commit is contained in:
Jacek Skrzypacz
2019-03-20 11:35:41 +01:00
committed by Javi Martín
parent e66b9687a2
commit 2af7e32415
19 changed files with 254 additions and 2 deletions

View File

@@ -0,0 +1,9 @@
class AddTsvectorToCommentsAndProposalNotifications < ActiveRecord::Migration[5.2]
def change
add_column :comments, :tsv, :tsvector
add_index :comments, :tsv, using: "gin"
add_column :proposal_notifications, :tsv, :tsvector
add_index :proposal_notifications, :tsv, using: "gin"
end
end