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:
committed by
Javi Martín
parent
e66b9687a2
commit
2af7e32415
@@ -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
|
||||
Reference in New Issue
Block a user