X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/cd2ca12d4235473cd3611b84e2a61649c17da2f6..f1905095ed55b2f89021849d4355d7c23d0b8c6b:/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 e0d223060..dc17d386e 100644 --- a/db/migrate/20140115192822_add_text_index_to_note_comments.rb +++ b/db/migrate/20140115192822_add_text_index_to_note_comments.rb @@ -1,6 +1,6 @@ -require 'migrate' +require "migrate" -class AddTextIndexToNoteComments < ActiveRecord::Migration +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" end