3410: Fix search index so [old versions of] tests pass after down-migration.
authorTom Clegg <tom@curoverse.com>
Mon, 16 Feb 2015 08:12:32 +0000 (03:12 -0500)
committerTom Clegg <tom@curoverse.com>
Mon, 16 Feb 2015 08:12:32 +0000 (03:12 -0500)
services/api/db/migrate/20150206230342_rename_replication_attributes.rb

index 23f0ffcffae7fb949fd3f49d2fb3d6e235de5ce9..58572d7acc866d0a94cc7521dae4d827e0761b99 100644 (file)
@@ -25,6 +25,6 @@ class RenameReplicationAttributes < ActiveRecord::Migration
     Collection.reset_column_information
 
     execute "CREATE INDEX collections_full_text_search_idx ON collections USING gin(#{Collection.full_text_tsvector});"
-    add_index :collections, ["owner_uuid", "modified_by_client_uuid", "modified_by_user_uuid", "portable_data_hash", "redundancy_confirmed_by_client_uuid", "uuid", "name", "file_names"], name: 'collections_search_index'
+    add_index :collections, ["owner_uuid", "modified_by_client_uuid", "modified_by_user_uuid", "portable_data_hash", "uuid", "name", "file_names", "redundancy_confirmed_by_client_uuid"], name: 'collections_search_index'
   end
 end