Merge branch '8784-dir-listings'
[arvados.git] / services / api / db / migrate / 20130116024233_create_specimens.rb
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 class CreateSpecimens < ActiveRecord::Migration
6   def up
7     create_table :specimens do |t|
8       t.string :uuid
9       t.string :created_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 :material
16
17       t.timestamps
18     end
19     add_index :specimens, :uuid, :unique => true
20   end
21   def down
22     drop_table :specimens
23   end
24 end