8784: Fix test for latest firefox.
[arvados.git] / services / api / db / migrate / 20150423145759_no_filenames_in_collection_search_index.rb
1 class NoFilenamesInCollectionSearchIndex < ActiveRecord::Migration
2   def up
3     remove_index :collections, :name => 'collections_search_index'
4     add_index :collections, ["owner_uuid", "modified_by_client_uuid", "modified_by_user_uuid", "portable_data_hash", "uuid", "name"], name: 'collections_search_index'
5   end
6
7   def down
8     remove_index :collections, :name => 'collections_search_index'
9     add_index :collections, ["owner_uuid", "modified_by_client_uuid", "modified_by_user_uuid", "portable_data_hash", "uuid", "name", "file_names"], name: 'collections_search_index'
10   end
11 end