11002: Merge branch 'master' into 11002-arvput-crash-fix
[arvados.git] / services / api / db / migrate / 20150423145759_no_filenames_in_collection_search_index.rb
index 7b52abd0120b0037adafaf9163623dfb62bc8b7a..e8423c10f2ac86623f36b6b156d1c5a73d38d697 100644 (file)
@@ -5,5 +5,7 @@ class NoFilenamesInCollectionSearchIndex < ActiveRecord::Migration
   end
 
   def down
+    remove_index :collections, :name => 'collections_search_index'
+    add_index :collections, ["owner_uuid", "modified_by_client_uuid", "modified_by_user_uuid", "portable_data_hash", "uuid", "name", "file_names"], name: 'collections_search_index'
   end
 end