1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
7 class AddOutputAndLogUuidToContainerRequest < ActiveRecord::Migration[4.2]
8 extend HasUuid::ClassMethods
11 add_column :container_requests, :output_uuid, :string
12 add_column :container_requests, :log_uuid, :string
14 no_such_out_coll = Server::Application.config.uuid_prefix + '-' + '4zz18' + '-xxxxxxxxxxxxxxx'
15 no_such_log_coll = Server::Application.config.uuid_prefix + '-' + '4zz18' + '-yyyyyyyyyyyyyyy'
18 update container_requests set output_uuid = ('#{no_such_out_coll}'), log_uuid = ('#{no_such_log_coll}');
23 remove_column :container_requests, :log_uuid
24 remove_column :container_requests, :output_uuid