Merge branch '8784-dir-listings'
[arvados.git] / services / api / db / migrate / 20130109220548_create_pipeline_invocations.rb
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 class CreatePipelineInvocations < ActiveRecord::Migration
6   def up
7     create_table :pipeline_invocations 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 :pipeline_uuid
16       t.string :name
17       t.text :components
18       t.boolean :success, :null => true
19       t.boolean :active, :default => false
20
21       t.timestamps
22     end
23     add_index :pipeline_invocations, :uuid, :unique => true
24   end
25   def down
26     drop_table :pipeline_invocations
27   end
28 end