]> git.openstreetmap.org Git - rails.git/blob - db/migrate/20250206202905_add_text_index_to_notes.rb
Merge pull request #5932 from tomhughes/frozen-strings
[rails.git] / db / migrate / 20250206202905_add_text_index_to_notes.rb
1 # frozen_string_literal: true
2
3 class AddTextIndexToNotes < ActiveRecord::Migration[7.2]
4   disable_ddl_transaction!
5
6   def change
7     add_index :notes, "to_tsvector('english', description)", :using => "GIN", :name => "index_notes_on_description", :algorithm => :concurrently
8   end
9 end