+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
class FullTextSearchIndexes < ActiveRecord::Migration
def fts_indexes
{
def up
# remove existing fts indexes and create up to date ones with no leading space
fts_indexes.each do |t, i|
+ t.classify.constantize.reset_column_information
ActiveRecord::Base.connection.indexes(t).each do |idx|
if idx.name == i
remove_index t.to_sym, :name => i