14 lines
265 B
Ruby
14 lines
265 B
Ruby
class CreateNodes < ActiveRecord::Migration
|
|
def change
|
|
create_table :nodes do |t|
|
|
|
|
t.string :host_name
|
|
t.string :host_ip, unique: true
|
|
t.string :user_name
|
|
t.string :user_password
|
|
|
|
t.timestamps null: false
|
|
end
|
|
end
|
|
end
|