X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/11cc4a5e601dd288d601e6e35a72d159062f18b5..2a1689f9621b7ec94e4935ea11fe64a45390ef7d:/db/migrate/20140115192822_add_text_index_to_note_comments.rb diff --git a/db/migrate/20140115192822_add_text_index_to_note_comments.rb b/db/migrate/20140115192822_add_text_index_to_note_comments.rb index dc17d386e..2dadfee98 100644 --- a/db/migrate/20140115192822_add_text_index_to_note_comments.rb +++ b/db/migrate/20140115192822_add_text_index_to_note_comments.rb @@ -1,8 +1,6 @@ -require "migrate" - class AddTextIndexToNoteComments < ActiveRecord::Migration[4.2] def up - add_index :note_comments, [], :columns => "to_tsvector('english', body)", :using => "GIN", :name => "index_note_comments_on_body" + add_index :note_comments, "to_tsvector('english', body)", :using => "GIN", :name => "index_note_comments_on_body" end def down