From ee4da2ac15623d6d3c5cd68457bfec90095be214 Mon Sep 17 00:00:00 2001 From: sasoc Date: Thu, 15 Feb 2018 18:09:29 +0100 Subject: [PATCH] Add hostname to Vm This migration adds attribute `hostname` to `Vm`. For example virtual machine in Vmware provider has attribute computer name and now we will be able to render it into hostname. --- db/migrate/20180215164010_add_hostname_to_vm.rb | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 db/migrate/20180215164010_add_hostname_to_vm.rb diff --git a/db/migrate/20180215164010_add_hostname_to_vm.rb b/db/migrate/20180215164010_add_hostname_to_vm.rb new file mode 100644 index 000000000..0841daab1 --- /dev/null +++ b/db/migrate/20180215164010_add_hostname_to_vm.rb @@ -0,0 +1,5 @@ +class AddHostnameToVm < ActiveRecord::Migration[5.0] + def change + add_column :vms, :hostname, :string + end +end