2016-09-20 12:14:13 +00:00
|
|
|
class CreateNodes < ActiveRecord::Migration
|
|
|
|
def change
|
|
|
|
create_table :nodes do |t|
|
|
|
|
|
|
|
|
t.string :host_name
|
2016-10-03 04:24:08 +00:00
|
|
|
t.string :host_ip, unique: true
|
2016-09-20 12:14:13 +00:00
|
|
|
t.string :user_name
|
|
|
|
t.string :user_password
|
|
|
|
|
|
|
|
t.timestamps null: false
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|