]> git.openstreetmap.org Git - rails.git/blob - db/migrate/20140115192822_add_text_index_to_note_comments.rb
Use user factories for some changeset_controller tests.
[rails.git] / db / migrate / 20140115192822_add_text_index_to_note_comments.rb
1 require "migrate"
2
3 class AddTextIndexToNoteComments < ActiveRecord::Migration
4   def up
5     add_index :note_comments, [], :columns => "to_tsvector('english', body)", :using => "GIN", :name => "index_note_comments_on_body"
6   end
7
8   def down
9     remove_index :note_comments, :name => "index_note_comments_on_body"
10   end
11 end