14484: Adds migration file for collection file count and size
[arvados.git] / services / api / db / migrate / 20190322174136_add_file_info_to_collection.rb
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 class AddFileInfoToCollection < ActiveRecord::Migration
6   def change
7     add_column :collections, :file_count, :integer, default: 0, null: false
8     add_column :collections, :file_size_total, :integer, default: 0, null: false
9   end
10 end