1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
5 class AddAuthAndLockToContainerIndex < ActiveRecord::Migration[4.2]
6 Columns_were = ["uuid", "owner_uuid", "modified_by_client_uuid", "modified_by_user_uuid", "state", "log", "cwd", "output_path", "output", "container_image"]
7 Columns = Columns_were + ["auth_uuid", "locked_by_uuid"]
10 remove_index :containers, :name => 'containers_search_index'
13 add_index(:containers, Columns, name: "containers_search_index")
18 remove_index :containers, :name => 'containers_search_index'
21 add_index(:containers, Columns_were, name: "containers_search_index")