1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
5 class AddUuidToApiTokenSearchIndex < ActiveRecord::Migration[4.2]
8 remove_index :api_client_authorizations, :name => 'api_client_authorizations_search_index'
11 add_index :api_client_authorizations,
12 ["api_token", "created_by_ip_address", "last_used_by_ip_address", "default_owner_uuid", "uuid"],
13 name: "api_client_authorizations_search_index"
18 remove_index :api_client_authorizations, :name => 'api_client_authorizations_search_index'
21 add_index :api_client_authorizations,
22 ["api_token", "created_by_ip_address", "last_used_by_ip_address", "default_owner_uuid"],
23 name: "api_client_authorizations_search_index"