8784: Fix test for latest firefox.
[arvados.git] / services / api / db / migrate / 20130107212832_create_nodes.rb
1 class CreateNodes < ActiveRecord::Migration
2   def up
3     create_table :nodes do |t|
4       t.string :uuid
5       t.string :created_by_client
6       t.string :created_by_user
7       t.datetime :created_at
8       t.string :modified_by_client
9       t.string :modified_by_user
10       t.datetime :modified_at
11       t.integer :slot_number
12       t.string :hostname
13       t.string :domain
14       t.string :ip_address
15       t.datetime :first_ping_at
16       t.datetime :last_ping_at
17       t.text :info
18
19       t.timestamps
20     end
21     add_index :nodes, :uuid, :unique => true
22     add_index :nodes, :slot_number, :unique => true
23     add_index :nodes, :hostname, :unique => true
24   end
25   def down
26     drop_table :nodes
27   end
28 end