X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/ffd4738242c61fa5acd423f927339f836dfb0ffb..5cd02331394595a6e64f19c2cc14c9955c9266dd:/services/api/db/migrate/20161213172944_full_text_search_indexes.rb diff --git a/services/api/db/migrate/20161213172944_full_text_search_indexes.rb b/services/api/db/migrate/20161213172944_full_text_search_indexes.rb index 4cb4d978a1..aac3773850 100644 --- a/services/api/db/migrate/20161213172944_full_text_search_indexes.rb +++ b/services/api/db/migrate/20161213172944_full_text_search_indexes.rb @@ -14,6 +14,7 @@ class FullTextSearchIndexes < ActiveRecord::Migration 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