[openstreetmap/openstreetmap-website] Updates notes filtering to search description too (PR #5622)
Nenad Vujicic
notifications at github.com
Wed Feb 12 09:51:23 UTC 2025
@nenad-vujicic commented on this pull request.
> @@ -0,0 +1,11 @@
+class AddTextIndexToNotes < ActiveRecord::Migration[7.2]
+ disable_ddl_transaction!
+
+ def up
+ add_index :notes, "to_tsvector('english', description)", :using => "GIN", :name => "index_notes_on_description", :algorithm => :concurrently
+ end
+
+ def down
Fixed (and pushed), thanks!
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5622#discussion_r1952319470
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5622/review/2611368423 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250212/6c96bc89/attachment.htm>
More information about the rails-dev
mailing list