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