class AddNameIndexToFtsTags < ActiveRecord::Migration[5.2]
  def change
    if Redmine::Database.mysql?
      add_index :fts_tags,
                :name,
                type: "fulltext",
                comment: "NORMALIZER 'NormalizerNFKC121'"
    else
      add_index :fts_tags,
                :name,
                type: "fulltext",
                using: "PGroonga",
                with: "normalizer = 'NormalizerNFKC121'"
    end
  end
end

class AddNameIndexToFtsTags < ActiveRecord::Migration[5.2]
  def change
    if Redmine::Database.mysql?
      add_index :fts_tags,
                :name,
                type: "fulltext",
                comment: "NORMALIZER 'NormalizerNFKC121'"
    else
      add_index :fts_tags,
                :name,
                using: "PGroonga",
                with: "normalizer = 'NormalizerNFKC121'"
    end
  end
end

Remove needless type: "fulltext" for PGroonga
Remove needless type: "fulltext" for PGroonga
