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