1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
5 class AddStorageClassesToCollections < ActiveRecord::Migration[4.2]
7 add_column :collections, :storage_classes_desired, :jsonb, :default => ["default"]
8 add_column :collections, :storage_classes_confirmed, :jsonb, :default => []
9 add_column :collections, :storage_classes_confirmed_at, :datetime, :default => nil, :null => true
13 remove_column :collections, :storage_classes_desired
14 remove_column :collections, :storage_classes_confirmed
15 remove_column :collections, :storage_classes_confirmed_at