]> git.openstreetmap.org Git - rails.git/blob - db/migrate/20140115192822_add_text_index_to_note_comments.rb
Don't send comment text when reopening a note
[rails.git] / db / migrate / 20140115192822_add_text_index_to_note_comments.rb
1 class AddTextIndexToNoteComments < ActiveRecord::Migration[4.2]
2   def up
3     add_index :note_comments, "to_tsvector('english', body)", :using => "GIN", :name => "index_note_comments_on_body"
4   end
5
6   def down
7     remove_index :note_comments, :name => "index_note_comments_on_body"
8   end
9 end