-require 'migrate'
+require "migrate"
-class AddTextIndexToNoteComments < ActiveRecord::Migration
+class AddTextIndexToNoteComments < ActiveRecord::Migration[5.0]
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