X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/aa1fb6dbb8c2e71b8ce8c231ae1272a2dfebd75a..38b74c1c48521c3de988b774117d6f9febcf1c3f:/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 cc9736988..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[5.0] +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