]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/20140115192822_add_text_index_to_note_comments.rb
Merge remote-tracking branch 'upstream/pull/3177'
[rails.git] / db / migrate / 20140115192822_add_text_index_to_note_comments.rb
index cc973698849bce22452c2f69ca84ca561b7d3472..2dadfee98d3fbfbadcbfcbaef21b54c36c1d604a 100644 (file)
@@ -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