openstreetmap-website/db/migrate/20250206202905_add_text_index_to_notes.rb
Nenad Vujicic 663459d1c1 Adds index to notes on description column
Adds text index to description column to table notes.
2025-02-12 18:22:50 +01:00

7 lines
253 B
Ruby

class AddTextIndexToNotes < ActiveRecord::Migration[7.2]
disable_ddl_transaction!
def change
add_index :notes, "to_tsvector('english', description)", :using => "GIN", :name => "index_notes_on_description", :algorithm => :concurrently
end
end