Merge branch '8784-dir-listings'
[arvados.git] / services / api / db / migrate / 20121016005009_create_collections.rb
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 class CreateCollections < ActiveRecord::Migration
6   def change
7     create_table :collections do |t|
8       t.string :locator
9       t.string :create_by_client
10       t.string :created_by_user
11       t.datetime :created_at
12       t.string :modified_by_client
13       t.string :modified_by_user
14       t.datetime :modified_at
15       t.string :portable_data_hash
16       t.string :name
17       t.integer :redundancy
18       t.string :redundancy_confirmed_by_client
19       t.datetime :redundancy_confirmed_at
20       t.integer :redundancy_confirmed_as
21
22       t.timestamps
23     end
24   end
25 end