]> git.openstreetmap.org Git - rails.git/blob - db/migrate/20250206202905_add_text_index_to_notes.rb
Adds index to notes on description column
[rails.git] / db / migrate / 20250206202905_add_text_index_to_notes.rb
1 class AddTextIndexToNotes < ActiveRecord::Migration[7.2]
2   disable_ddl_transaction!
3
4   def change
5     add_index :notes, "to_tsvector('english', description)", :using => "GIN", :name => "index_notes_on_description", :algorithm => :concurrently
6   end
7 end