X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/45618726efd410f721d3406b341533168ced6f11..77e8a16a153752b919a9153c1c9ded9834d387f7:/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 e43374595..fe9134048 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,8 @@ -require 'migrate' +require "migrate" class AddTextIndexToNoteComments < ActiveRecord::Migration def up - add_index :note_comments, [], :columns => "to_tsvector('english', body)", :method => "GIN", :name => "index_note_comments_on_body" + add_index :note_comments, [], :columns => "to_tsvector('english', body)", :using => "GIN", :name => "index_note_comments_on_body" end def down