Merge branch '8784-dir-listings'
[arvados.git] / services / api / db / migrate / 20130608053730_create_virtual_machines.rb
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 class CreateVirtualMachines < ActiveRecord::Migration
6   def change
7     create_table :virtual_machines do |t|
8       t.string :uuid, :null => false
9       t.string :owner, :null => false
10       t.string :modified_by_client
11       t.string :modified_by_user
12       t.datetime :modified_at
13       t.string :hostname
14
15       t.timestamps
16     end
17     add_index :virtual_machines, :uuid, :unique => true
18     add_index :virtual_machines, :hostname
19   end
20 end