From a84adee85d06af18d688d937343e681c67498f50 Mon Sep 17 00:00:00 2001 From: Daniel Berger Date: Thu, 25 Oct 2018 17:12:12 -0600 Subject: [PATCH 01/23] Initial commit. --- ...0181025230931_add_comments_to_vms_table.rb | 81 +++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 db/migrate/20181025230931_add_comments_to_vms_table.rb diff --git a/db/migrate/20181025230931_add_comments_to_vms_table.rb b/db/migrate/20181025230931_add_comments_to_vms_table.rb new file mode 100644 index 000000000..d7aa87fdc --- /dev/null +++ b/db/migrate/20181025230931_add_comments_to_vms_table.rb @@ -0,0 +1,81 @@ +class AddCommentsToVmsTable < ActiveRecord::Migration[5.0] + def change + change_table_comment :vms, "Virtual Machines and Templates" + + change_column_comment :vms, :autostart, "Indicates whether or not the VM is set to autostart." + change_column_comment :vms, :availability_zone_id, "ID of the availability zone that the VM is part of." + change_column_comment :vms, :busy, "[DEFINITION NEEDED]" + change_column_comment :vms, :boot_time, "The last time the VM was started." + change_column_comment :vms, :cloud, "Indicates whether or not the VM/Template is cloud or infra." + change_column_comment :vms, :cloud_network_id, "ID of the cloud (virtual) network the VM/Template is associated with." + change_column_comment :vms, :cloud_subnet_id, "Subnet ID associated with the VM." + change_column_comment :vms, :cloud_tenant_id, "ID of the cloud tenant associated with the VM." + change_column_comment :vms, :config_xml, "The VM or Template configuration in XML format. Deprecated." + change_column_comment :vms, :connection_state, "[DEFINITION NEEDED]" + change_column_comment :vms, :cpu_affinity, "[DEFINITION NEEDED]" + change_column_comment :vms, :cpu_hot_add_enabled, "[DEFINITION NEEDED]" + change_column_comment :vms, :cpu_hot_remove_enabled, "[DEFINITION NEEDED]" + change_column_comment :vms, :cpu_limit, "[DEFINITION NEEDED]" + change_column_comment :vms, :cpu_reserve, "[DEFINITION NEEDED]" + change_column_comment :vms, :cpu_reserve_expand, "[DEFINITION NEEDED]" + change_column_comment :vms, :cpu_shares, "[DEFINITION NEEDED]" + change_column_comment :vms, :cpu_shares_level, "[DEFINITION NEEDED]" + change_column_comment :vms, :created_on, "The date the VM was added to the app inventory." + change_column_comment :vms, :deprecated, "[DEFINITION NEEDED]" + change_column_comment :vms, :description, "A custom description that users can add within the app." + change_column_comment :vms, :ems_created_on, "Date the associated EMS was created." + change_column_comment :vms, :ems_id, "ID of the ExtManagementSystem associated with the VM." + change_column_comment :vms, :evm_owner_id, "ID of VM owner from product database." + change_column_comment :vms, :ems_ref_obj, "[DEFINITION NEEDED]" + change_column_comment :vms, :ems_cluster_id, "ID of associated cluster." + change_column_comment :vms, :fault_tolerance, "[DEFINITION NEEDED]" + change_column_comment :vms, :flavor_id, "ID of associated flavor." + change_column_comment :vms, :format, "The format of the VM's disk, such as VMDK." + change_column_comment :vms, :guid, "A value used to uniquely identify the VM internally." + change_column_comment :vms, :id, "The internal database ID." + change_column_comment :vms, :host_id, "ID of the host that the VM/Template resides on." + change_column_comment :vms, :last_perf_capture_on, "Timestamp for last performance metrics capture." + change_column_comment :vms, :last_scan_on, "Timestamp for last SmartState Analysis." + change_column_comment :vms, :last_scan_attempt_on, "Timestamp for last attempt to perform SmartState Analysis." + change_column_comment :vms, :last_sync_on, "[DEFINITION NEEDED]" + change_column_comment :vms, :linked_clone, "[DEFINITION NEEDED]" + change_column_comment :vms, :location, "The location or region of the VM." + change_column_comment :vms, :memory_hot_add_enabled, "[DEFINITION NEEDED]" + change_column_comment :vms, :memory_hot_add_increment, "[DEFINITION NEEDED]" + change_column_comment :vms, :memory_hot_add_limit, "[DEFINITION NEEDED]" + change_column_comment :vms, :memory_limit, "[DEFINITION NEEDED]" + change_column_comment :vms, :memory_reserve, "[DEFINITION NEEDED]" + change_column_comment :vms, :memory_reserve_expand, "[DEFINITION NEEDED]" + change_column_comment :vms, :memory_shares, "[DEFINITION NEEDED]" + change_column_comment :vms, :memory_shares_level, "[DEFINITION NEEDED]" + change_column_comment :vms, :miq_group_id, "MIQ Group associated with the VM." + change_column_comment :vms, :name, "The name of the VM/Template." + change_column_comment :vms, :orchestration_stack_id, "ID of the orchestration stack associated with the VM." + change_column_comment :vms, :power_state, "The current power state, typically 'on' or 'off'." + change_column_comment :vms, :previous_state, "The previous power state change." + change_column_comment :vms, :publicly_available, "Indicates whether the VM is public or private." + change_column_comment :vms, :raw_power_state, "[DEFINITION NEEDED]" + change_column_comment :vms, :registered, "Indicates whether the VM registered to a Provider." + change_column_comment :vms, :resource_group_id, "ID of the resource group that the VM/Template belongs to." + change_column_comment :vms, :retired, "Indicates whether or not the VM is retired." + change_column_comment :vms, :retirement_last_warn, "Date of last retirement warning." + change_column_comment :vms, :retirement_requester, "Userid of the user who requested retirement." + change_column_comment :vms, :retirement_state, "The current retirement state." + change_column_comment :vms, :retirement_warn, "Warning message when VM was put into retirement." + change_column_comment :vms, :retires_on, "Date the VM is to be retired." + change_column_comment :vms, :smart, "[DEFINITION NEEDED]" + change_column_comment :vms, :standby_action, "Action taken when VM is put into standby mode." + change_column_comment :vms, :storage_id, "ID of the storage object associated with the VM." + change_column_comment :vms, :storage_profile_id, "ID of the storage profile associated with the VM." + change_column_comment :vms, :state_changed_on, "The date of the last power state change." + change_column_comment :vms, :template, "Indicates if a template was used to provision the VM or not." + change_column_comment :vms, :tenant_id, "ID of the tenant associated with the VM." + change_column_comment :vms, :tools_status, "Status of VMWare tools." + change_column_comment :vms, :type, "An internal class name that includes the provider type." + change_column_comment :vms, :uid_ems, "[DEFINITION NEEDED]" + change_column_comment :vms, :updated_on, "The last date the VM was modified within the app." + change_column_comment :vms, :vendor, "The vendor for the VM, e.g. Azure, Amazon, etc." + change_column_comment :vms, :version, "[DEFINITION NEEDED]" + change_column_comment :vms, :vnc_port, "Port or port range used for VNC connections." + end +end From 6c584c129b74b9320655074edbc2b0a22509402a Mon Sep 17 00:00:00 2001 From: Daniel Berger Date: Fri, 26 Oct 2018 08:50:02 -0600 Subject: [PATCH 02/23] Generally replace date with timestamp, fill in some gaps. --- ...20181025230931_add_comments_to_vms_table.rb | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/db/migrate/20181025230931_add_comments_to_vms_table.rb b/db/migrate/20181025230931_add_comments_to_vms_table.rb index d7aa87fdc..64a7362a1 100644 --- a/db/migrate/20181025230931_add_comments_to_vms_table.rb +++ b/db/migrate/20181025230931_add_comments_to_vms_table.rb @@ -20,7 +20,7 @@ def change change_column_comment :vms, :cpu_reserve_expand, "[DEFINITION NEEDED]" change_column_comment :vms, :cpu_shares, "[DEFINITION NEEDED]" change_column_comment :vms, :cpu_shares_level, "[DEFINITION NEEDED]" - change_column_comment :vms, :created_on, "The date the VM was added to the app inventory." + change_column_comment :vms, :created_on, "The timestamp the VM was added to the app inventory." change_column_comment :vms, :deprecated, "[DEFINITION NEEDED]" change_column_comment :vms, :description, "A custom description that users can add within the app." change_column_comment :vms, :ems_created_on, "Date the associated EMS was created." @@ -40,7 +40,7 @@ def change change_column_comment :vms, :last_sync_on, "[DEFINITION NEEDED]" change_column_comment :vms, :linked_clone, "[DEFINITION NEEDED]" change_column_comment :vms, :location, "The location or region of the VM." - change_column_comment :vms, :memory_hot_add_enabled, "[DEFINITION NEEDED]" + change_column_comment :vms, :memory_hot_add_enabled, "Indicates whether or not memory can be hot added to the running VM." change_column_comment :vms, :memory_hot_add_increment, "[DEFINITION NEEDED]" change_column_comment :vms, :memory_hot_add_limit, "[DEFINITION NEEDED]" change_column_comment :vms, :memory_limit, "[DEFINITION NEEDED]" @@ -54,7 +54,7 @@ def change change_column_comment :vms, :power_state, "The current power state, typically 'on' or 'off'." change_column_comment :vms, :previous_state, "The previous power state change." change_column_comment :vms, :publicly_available, "Indicates whether the VM is public or private." - change_column_comment :vms, :raw_power_state, "[DEFINITION NEEDED]" + change_column_comment :vms, :raw_power_state, "The power state refreshed from the EMS." change_column_comment :vms, :registered, "Indicates whether the VM registered to a Provider." change_column_comment :vms, :resource_group_id, "ID of the resource group that the VM/Template belongs to." change_column_comment :vms, :retired, "Indicates whether or not the VM is retired." @@ -62,20 +62,20 @@ def change change_column_comment :vms, :retirement_requester, "Userid of the user who requested retirement." change_column_comment :vms, :retirement_state, "The current retirement state." change_column_comment :vms, :retirement_warn, "Warning message when VM was put into retirement." - change_column_comment :vms, :retires_on, "Date the VM is to be retired." + change_column_comment :vms, :retires_on, "Timestamp the VM is to be retired." change_column_comment :vms, :smart, "[DEFINITION NEEDED]" change_column_comment :vms, :standby_action, "Action taken when VM is put into standby mode." change_column_comment :vms, :storage_id, "ID of the storage object associated with the VM." change_column_comment :vms, :storage_profile_id, "ID of the storage profile associated with the VM." - change_column_comment :vms, :state_changed_on, "The date of the last power state change." - change_column_comment :vms, :template, "Indicates if a template was used to provision the VM or not." + change_column_comment :vms, :state_changed_on, "The timestamp of the last power state change." + change_column_comment :vms, :template, "Indicates whether this is a VM or template." change_column_comment :vms, :tenant_id, "ID of the tenant associated with the VM." - change_column_comment :vms, :tools_status, "Status of VMWare tools." + change_column_comment :vms, :tools_status, "Status of guest tools." change_column_comment :vms, :type, "An internal class name that includes the provider type." change_column_comment :vms, :uid_ems, "[DEFINITION NEEDED]" - change_column_comment :vms, :updated_on, "The last date the VM was modified within the app." + change_column_comment :vms, :updated_on, "The last timestamp the VM was modified within the app." change_column_comment :vms, :vendor, "The vendor for the VM, e.g. Azure, Amazon, etc." - change_column_comment :vms, :version, "[DEFINITION NEEDED]" + change_column_comment :vms, :version, "The version of the VM definition." change_column_comment :vms, :vnc_port, "Port or port range used for VNC connections." end end From 23d274d44bad45c9906f6c395650d00b43942d29 Mon Sep 17 00:00:00 2001 From: Daniel Berger Date: Fri, 26 Oct 2018 10:23:05 -0600 Subject: [PATCH 03/23] Update more columns. --- ...0181025230931_add_comments_to_vms_table.rb | 44 ++++++++++++------- 1 file changed, 28 insertions(+), 16 deletions(-) diff --git a/db/migrate/20181025230931_add_comments_to_vms_table.rb b/db/migrate/20181025230931_add_comments_to_vms_table.rb index 64a7362a1..6b70ee571 100644 --- a/db/migrate/20181025230931_add_comments_to_vms_table.rb +++ b/db/migrate/20181025230931_add_comments_to_vms_table.rb @@ -11,34 +11,46 @@ def change change_column_comment :vms, :cloud_subnet_id, "Subnet ID associated with the VM." change_column_comment :vms, :cloud_tenant_id, "ID of the cloud tenant associated with the VM." change_column_comment :vms, :config_xml, "The VM or Template configuration in XML format. Deprecated." - change_column_comment :vms, :connection_state, "[DEFINITION NEEDED]" - change_column_comment :vms, :cpu_affinity, "[DEFINITION NEEDED]" - change_column_comment :vms, :cpu_hot_add_enabled, "[DEFINITION NEEDED]" - change_column_comment :vms, :cpu_hot_remove_enabled, "[DEFINITION NEEDED]" - change_column_comment :vms, :cpu_limit, "[DEFINITION NEEDED]" - change_column_comment :vms, :cpu_reserve, "[DEFINITION NEEDED]" - change_column_comment :vms, :cpu_reserve_expand, "[DEFINITION NEEDED]" - change_column_comment :vms, :cpu_shares, "[DEFINITION NEEDED]" - change_column_comment :vms, :cpu_shares_level, "[DEFINITION NEEDED]" + change_column_comment :vms, :connection_state, "Indicates the connection state of the VM, e.g. connected, disconnected, etc." + change_column_comment :vms, :cpu_affinity, "A comma separated list of host CPUs to schedule the VM on. VMware only." + change_column_comment :vms, :cpu_hot_add_enabled, "Indicates if CPUs can be added to the VM while it is powered on." + change_column_comment :vms, :cpu_hot_remove_enabled, "Indicates if a CPU can be removed from a VM while powered on." + change_column_comment :vms, :cpu_limit, "The CPU utilization limit for the VM. VMWare only." + change_column_comment :vms, :cpu_reserve, "Amount of CPU that is guaranteed available for the VM. VMWare only." + + change_column_comment :vms, :cpu_reserve_expand, "Amount on a resource pool that can grow beyond the specified value "\ + "if the parent resource pool has unreserved resources. VMWare only." + + change_column_comment :vms, :cpu_shares, "The number of shares allocated. Used to determine resource allocation "\ + "in case of resource contention. VMWare only." + + change_column_comment :vms, :cpu_shares_level, "CPU shares allocation level. VMWare only." change_column_comment :vms, :created_on, "The timestamp the VM was added to the app inventory." - change_column_comment :vms, :deprecated, "[DEFINITION NEEDED]" + change_column_comment :vms, :deprecated, "Indicates whether or not a template is deprecated. Google only." change_column_comment :vms, :description, "A custom description that users can add within the app." change_column_comment :vms, :ems_created_on, "Date the associated EMS was created." change_column_comment :vms, :ems_id, "ID of the ExtManagementSystem associated with the VM." change_column_comment :vms, :evm_owner_id, "ID of VM owner from product database." - change_column_comment :vms, :ems_ref_obj, "[DEFINITION NEEDED]" + change_column_comment :vms, :ems_ref, "A native unique reference for the VM within the EMS." + change_column_comment :vms, :ems_ref_obj, "A YAML serialized version of the ems_ref." change_column_comment :vms, :ems_cluster_id, "ID of associated cluster." - change_column_comment :vms, :fault_tolerance, "[DEFINITION NEEDED]" + + change_column_comment :vms, :fault_tolerance, "Indicates whether or not the VM is fault tolerant, i.e. if one host "\ + "crashes it will immediately pick up on another host in the cluster." + change_column_comment :vms, :flavor_id, "ID of associated flavor." change_column_comment :vms, :format, "The format of the VM's disk, such as VMDK." change_column_comment :vms, :guid, "A value used to uniquely identify the VM internally." change_column_comment :vms, :id, "The internal database ID." change_column_comment :vms, :host_id, "ID of the host that the VM/Template resides on." change_column_comment :vms, :last_perf_capture_on, "Timestamp for last performance metrics capture." - change_column_comment :vms, :last_scan_on, "Timestamp for last SmartState Analysis." + change_column_comment :vms, :last_scan_on, "Timestamp for last SmartState analysis." change_column_comment :vms, :last_scan_attempt_on, "Timestamp for last attempt to perform SmartState Analysis." - change_column_comment :vms, :last_sync_on, "[DEFINITION NEEDED]" - change_column_comment :vms, :linked_clone, "[DEFINITION NEEDED]" + change_column_comment :vms, :last_sync_on, "Timestamp for last SmartState analysis." + + change_column_comment :vms, :linked_clone, "Indicates whether the VM is a linked clone, i.e its disk is a referencing "\ + "disk pointing to snapshot of another VM." + change_column_comment :vms, :location, "The location or region of the VM." change_column_comment :vms, :memory_hot_add_enabled, "Indicates whether or not memory can be hot added to the running VM." change_column_comment :vms, :memory_hot_add_increment, "[DEFINITION NEEDED]" @@ -72,7 +84,7 @@ def change change_column_comment :vms, :tenant_id, "ID of the tenant associated with the VM." change_column_comment :vms, :tools_status, "Status of guest tools." change_column_comment :vms, :type, "An internal class name that includes the provider type." - change_column_comment :vms, :uid_ems, "[DEFINITION NEEDED]" + change_column_comment :vms, :uid_ems, "A globally unique reference for the VM across EMS." change_column_comment :vms, :updated_on, "The last timestamp the VM was modified within the app." change_column_comment :vms, :vendor, "The vendor for the VM, e.g. Azure, Amazon, etc." change_column_comment :vms, :version, "The version of the VM definition." From a8a58a223e9a4cb427fab127bd55aa7c26d35a03 Mon Sep 17 00:00:00 2001 From: Daniel Berger Date: Fri, 26 Oct 2018 10:40:31 -0600 Subject: [PATCH 04/23] Update more columns. --- ...0181025230931_add_comments_to_vms_table.rb | 29 ++++++++++++------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/db/migrate/20181025230931_add_comments_to_vms_table.rb b/db/migrate/20181025230931_add_comments_to_vms_table.rb index 6b70ee571..14b038cda 100644 --- a/db/migrate/20181025230931_add_comments_to_vms_table.rb +++ b/db/migrate/20181025230931_add_comments_to_vms_table.rb @@ -18,10 +18,10 @@ def change change_column_comment :vms, :cpu_limit, "The CPU utilization limit for the VM. VMWare only." change_column_comment :vms, :cpu_reserve, "Amount of CPU that is guaranteed available for the VM. VMWare only." - change_column_comment :vms, :cpu_reserve_expand, "Amount on a resource pool that can grow beyond the specified value "\ - "if the parent resource pool has unreserved resources. VMWare only." + change_column_comment :vms, :cpu_reserve_expand, "Amount the CPU can grow beyond its normal limits if there "\ + "are unreserved resources available. VMWare only." - change_column_comment :vms, :cpu_shares, "The number of shares allocated. Used to determine resource allocation "\ + change_column_comment :vms, :cpu_shares, "The number of CPU shares allocated. Used to determine resource allocation "\ "in case of resource contention. VMWare only." change_column_comment :vms, :cpu_shares_level, "CPU shares allocation level. VMWare only." @@ -53,13 +53,22 @@ def change change_column_comment :vms, :location, "The location or region of the VM." change_column_comment :vms, :memory_hot_add_enabled, "Indicates whether or not memory can be hot added to the running VM." - change_column_comment :vms, :memory_hot_add_increment, "[DEFINITION NEEDED]" - change_column_comment :vms, :memory_hot_add_limit, "[DEFINITION NEEDED]" - change_column_comment :vms, :memory_limit, "[DEFINITION NEEDED]" - change_column_comment :vms, :memory_reserve, "[DEFINITION NEEDED]" - change_column_comment :vms, :memory_reserve_expand, "[DEFINITION NEEDED]" - change_column_comment :vms, :memory_shares, "[DEFINITION NEEDED]" - change_column_comment :vms, :memory_shares_level, "[DEFINITION NEEDED]" + + change_column_comment :vms, :memory_hot_add_increment, "Memory in MB that can be added to a running VM must be in "\ + "increments of this value. VMWare only." + + change_column_comment :vms, :memory_hot_add_limit, "The maximum amount of memory, in MB, than can be added to a running VM. VMWare only." + change_column_comment :vms, :memory_limit, "The absolute memory limit for the VM." + change_column_comment :vms, :memory_reserve, "Amount of memory that is guaranteed available for the VM. VMWare only." + + change_column_comment :vms, :memory_reserve_expand, "Amount the memory can grow beyond its normal limits if there "\ + "are unreserved resources available. VMWare only." + + change_column_comment :vms, :memory_shares, "The number of memory shares allocated. Used to determine resource allocation "\ + "in case of resource contention. VMWare only." + + change_column_comment :vms, :memory_shares_level, "Memory shares allocation level. VMWare only." + change_column_comment :vms, :miq_group_id, "MIQ Group associated with the VM." change_column_comment :vms, :name, "The name of the VM/Template." change_column_comment :vms, :orchestration_stack_id, "ID of the orchestration stack associated with the VM." From e86eba5217c752f85c68327d75cec23ff954e4ee Mon Sep 17 00:00:00 2001 From: Daniel Berger Date: Mon, 29 Oct 2018 11:11:38 -0600 Subject: [PATCH 05/23] Updated description field. --- db/migrate/20181025230931_add_comments_to_vms_table.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20181025230931_add_comments_to_vms_table.rb b/db/migrate/20181025230931_add_comments_to_vms_table.rb index 14b038cda..977a9dd1b 100644 --- a/db/migrate/20181025230931_add_comments_to_vms_table.rb +++ b/db/migrate/20181025230931_add_comments_to_vms_table.rb @@ -27,7 +27,7 @@ def change change_column_comment :vms, :cpu_shares_level, "CPU shares allocation level. VMWare only." change_column_comment :vms, :created_on, "The timestamp the VM was added to the app inventory." change_column_comment :vms, :deprecated, "Indicates whether or not a template is deprecated. Google only." - change_column_comment :vms, :description, "A custom description that users can add within the app." + change_column_comment :vms, :description, "A description of the VM that is typically set by the provider, but may also be edited." change_column_comment :vms, :ems_created_on, "Date the associated EMS was created." change_column_comment :vms, :ems_id, "ID of the ExtManagementSystem associated with the VM." change_column_comment :vms, :evm_owner_id, "ID of VM owner from product database." From 355470f5893886b8e1022476e0ec169a416ce147 Mon Sep 17 00:00:00 2001 From: Daniel Berger Date: Mon, 29 Oct 2018 13:19:18 -0600 Subject: [PATCH 06/23] Update smart column def. --- db/migrate/20181025230931_add_comments_to_vms_table.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20181025230931_add_comments_to_vms_table.rb b/db/migrate/20181025230931_add_comments_to_vms_table.rb index 977a9dd1b..5895713d5 100644 --- a/db/migrate/20181025230931_add_comments_to_vms_table.rb +++ b/db/migrate/20181025230931_add_comments_to_vms_table.rb @@ -84,7 +84,7 @@ def change change_column_comment :vms, :retirement_state, "The current retirement state." change_column_comment :vms, :retirement_warn, "Warning message when VM was put into retirement." change_column_comment :vms, :retires_on, "Timestamp the VM is to be retired." - change_column_comment :vms, :smart, "[DEFINITION NEEDED]" + change_column_comment :vms, :smart, "Indicates whether or not smart proxy is enabled. Deprecated." change_column_comment :vms, :standby_action, "Action taken when VM is put into standby mode." change_column_comment :vms, :storage_id, "ID of the storage object associated with the VM." change_column_comment :vms, :storage_profile_id, "ID of the storage profile associated with the VM." From 32233e28d6ef69c4205130723e4719155900b500 Mon Sep 17 00:00:00 2001 From: Daniel Berger Date: Mon, 29 Oct 2018 16:06:15 -0600 Subject: [PATCH 07/23] Added note for busy column. --- db/migrate/20181025230931_add_comments_to_vms_table.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20181025230931_add_comments_to_vms_table.rb b/db/migrate/20181025230931_add_comments_to_vms_table.rb index 5895713d5..8cc113802 100644 --- a/db/migrate/20181025230931_add_comments_to_vms_table.rb +++ b/db/migrate/20181025230931_add_comments_to_vms_table.rb @@ -4,7 +4,7 @@ def change change_column_comment :vms, :autostart, "Indicates whether or not the VM is set to autostart." change_column_comment :vms, :availability_zone_id, "ID of the availability zone that the VM is part of." - change_column_comment :vms, :busy, "[DEFINITION NEEDED]" + change_column_comment :vms, :busy, "Indicates whether or not the VM is being scanned for SmartState analysis." change_column_comment :vms, :boot_time, "The last time the VM was started." change_column_comment :vms, :cloud, "Indicates whether or not the VM/Template is cloud or infra." change_column_comment :vms, :cloud_network_id, "ID of the cloud (virtual) network the VM/Template is associated with." From f92bd2ba8a63e46db410160e1e38c6d98d8b9756 Mon Sep 17 00:00:00 2001 From: Daniel Berger Date: Mon, 29 Oct 2018 17:16:05 -0600 Subject: [PATCH 08/23] Added deprecation notice to busy column. --- db/migrate/20181025230931_add_comments_to_vms_table.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20181025230931_add_comments_to_vms_table.rb b/db/migrate/20181025230931_add_comments_to_vms_table.rb index 8cc113802..5daee9ef8 100644 --- a/db/migrate/20181025230931_add_comments_to_vms_table.rb +++ b/db/migrate/20181025230931_add_comments_to_vms_table.rb @@ -4,7 +4,7 @@ def change change_column_comment :vms, :autostart, "Indicates whether or not the VM is set to autostart." change_column_comment :vms, :availability_zone_id, "ID of the availability zone that the VM is part of." - change_column_comment :vms, :busy, "Indicates whether or not the VM is being scanned for SmartState analysis." + change_column_comment :vms, :busy, "Indicates whether or not the VM is being scanned for SmartState analysis. Deprecated." change_column_comment :vms, :boot_time, "The last time the VM was started." change_column_comment :vms, :cloud, "Indicates whether or not the VM/Template is cloud or infra." change_column_comment :vms, :cloud_network_id, "ID of the cloud (virtual) network the VM/Template is associated with." From dfbbcbf480d4dde69557c6da80fdb736a6cb3c8d Mon Sep 17 00:00:00 2001 From: Daniel Berger Date: Tue, 30 Oct 2018 10:09:22 -0600 Subject: [PATCH 09/23] Fix vendor case. --- db/migrate/20181025230931_add_comments_to_vms_table.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20181025230931_add_comments_to_vms_table.rb b/db/migrate/20181025230931_add_comments_to_vms_table.rb index 5daee9ef8..cb3f2ee7e 100644 --- a/db/migrate/20181025230931_add_comments_to_vms_table.rb +++ b/db/migrate/20181025230931_add_comments_to_vms_table.rb @@ -95,7 +95,7 @@ def change change_column_comment :vms, :type, "An internal class name that includes the provider type." change_column_comment :vms, :uid_ems, "A globally unique reference for the VM across EMS." change_column_comment :vms, :updated_on, "The last timestamp the VM was modified within the app." - change_column_comment :vms, :vendor, "The vendor for the VM, e.g. Azure, Amazon, etc." + change_column_comment :vms, :vendor, "The vendor for the VM, e.g. azure, amazon, etc." change_column_comment :vms, :version, "The version of the VM definition." change_column_comment :vms, :vnc_port, "Port or port range used for VNC connections." end From 7e4d4b7bcf4ba2a363e481dc5cc0bf820403161c Mon Sep 17 00:00:00 2001 From: Daniel Berger Date: Tue, 30 Oct 2018 10:10:48 -0600 Subject: [PATCH 10/23] Updated miq_group_id comment. --- db/migrate/20181025230931_add_comments_to_vms_table.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20181025230931_add_comments_to_vms_table.rb b/db/migrate/20181025230931_add_comments_to_vms_table.rb index cb3f2ee7e..d55b2a6d7 100644 --- a/db/migrate/20181025230931_add_comments_to_vms_table.rb +++ b/db/migrate/20181025230931_add_comments_to_vms_table.rb @@ -69,7 +69,7 @@ def change change_column_comment :vms, :memory_shares_level, "Memory shares allocation level. VMWare only." - change_column_comment :vms, :miq_group_id, "MIQ Group associated with the VM." + change_column_comment :vms, :miq_group_id, "ID of the MIQ Group owner." change_column_comment :vms, :name, "The name of the VM/Template." change_column_comment :vms, :orchestration_stack_id, "ID of the orchestration stack associated with the VM." change_column_comment :vms, :power_state, "The current power state, typically 'on' or 'off'." From 8476515c8ae569b9e03260cecc6954ac25398c8f Mon Sep 17 00:00:00 2001 From: Daniel Berger Date: Tue, 30 Oct 2018 10:28:22 -0600 Subject: [PATCH 11/23] Remove mentions of specific vendors. --- ...0181025230931_add_comments_to_vms_table.rb | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/db/migrate/20181025230931_add_comments_to_vms_table.rb b/db/migrate/20181025230931_add_comments_to_vms_table.rb index d55b2a6d7..41b14045e 100644 --- a/db/migrate/20181025230931_add_comments_to_vms_table.rb +++ b/db/migrate/20181025230931_add_comments_to_vms_table.rb @@ -12,21 +12,21 @@ def change change_column_comment :vms, :cloud_tenant_id, "ID of the cloud tenant associated with the VM." change_column_comment :vms, :config_xml, "The VM or Template configuration in XML format. Deprecated." change_column_comment :vms, :connection_state, "Indicates the connection state of the VM, e.g. connected, disconnected, etc." - change_column_comment :vms, :cpu_affinity, "A comma separated list of host CPUs to schedule the VM on. VMware only." + change_column_comment :vms, :cpu_affinity, "A comma separated list of host CPUs to schedule the VM on." change_column_comment :vms, :cpu_hot_add_enabled, "Indicates if CPUs can be added to the VM while it is powered on." change_column_comment :vms, :cpu_hot_remove_enabled, "Indicates if a CPU can be removed from a VM while powered on." - change_column_comment :vms, :cpu_limit, "The CPU utilization limit for the VM. VMWare only." - change_column_comment :vms, :cpu_reserve, "Amount of CPU that is guaranteed available for the VM. VMWare only." + change_column_comment :vms, :cpu_limit, "The CPU utilization limit for the VM." + change_column_comment :vms, :cpu_reserve, "Amount of CPU that is guaranteed available for the VM." change_column_comment :vms, :cpu_reserve_expand, "Amount the CPU can grow beyond its normal limits if there "\ - "are unreserved resources available. VMWare only." + "are unreserved resources available." change_column_comment :vms, :cpu_shares, "The number of CPU shares allocated. Used to determine resource allocation "\ - "in case of resource contention. VMWare only." + "in case of resource contention." - change_column_comment :vms, :cpu_shares_level, "CPU shares allocation level. VMWare only." + change_column_comment :vms, :cpu_shares_level, "CPU shares allocation level." change_column_comment :vms, :created_on, "The timestamp the VM was added to the app inventory." - change_column_comment :vms, :deprecated, "Indicates whether or not a template is deprecated. Google only." + change_column_comment :vms, :deprecated, "Indicates whether or not a template is deprecated." change_column_comment :vms, :description, "A description of the VM that is typically set by the provider, but may also be edited." change_column_comment :vms, :ems_created_on, "Date the associated EMS was created." change_column_comment :vms, :ems_id, "ID of the ExtManagementSystem associated with the VM." @@ -55,19 +55,19 @@ def change change_column_comment :vms, :memory_hot_add_enabled, "Indicates whether or not memory can be hot added to the running VM." change_column_comment :vms, :memory_hot_add_increment, "Memory in MB that can be added to a running VM must be in "\ - "increments of this value. VMWare only." + "increments of this value." - change_column_comment :vms, :memory_hot_add_limit, "The maximum amount of memory, in MB, than can be added to a running VM. VMWare only." + change_column_comment :vms, :memory_hot_add_limit, "The maximum amount of memory, in MB, than can be added to a running VM." change_column_comment :vms, :memory_limit, "The absolute memory limit for the VM." - change_column_comment :vms, :memory_reserve, "Amount of memory that is guaranteed available for the VM. VMWare only." + change_column_comment :vms, :memory_reserve, "Amount of memory that is guaranteed available for the VM." change_column_comment :vms, :memory_reserve_expand, "Amount the memory can grow beyond its normal limits if there "\ - "are unreserved resources available. VMWare only." + "are unreserved resources available." change_column_comment :vms, :memory_shares, "The number of memory shares allocated. Used to determine resource allocation "\ - "in case of resource contention. VMWare only." + "in case of resource contention." - change_column_comment :vms, :memory_shares_level, "Memory shares allocation level. VMWare only." + change_column_comment :vms, :memory_shares_level, "Memory shares allocation level." change_column_comment :vms, :miq_group_id, "ID of the MIQ Group owner." change_column_comment :vms, :name, "The name of the VM/Template." From bba5ed86e84d84b46e93856116ebd1db5c1c8648 Mon Sep 17 00:00:00 2001 From: Daniel Berger Date: Tue, 30 Oct 2018 10:31:11 -0600 Subject: [PATCH 12/23] Updated ems_created_on comment. --- db/migrate/20181025230931_add_comments_to_vms_table.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20181025230931_add_comments_to_vms_table.rb b/db/migrate/20181025230931_add_comments_to_vms_table.rb index 41b14045e..6913db36f 100644 --- a/db/migrate/20181025230931_add_comments_to_vms_table.rb +++ b/db/migrate/20181025230931_add_comments_to_vms_table.rb @@ -28,7 +28,7 @@ def change change_column_comment :vms, :created_on, "The timestamp the VM was added to the app inventory." change_column_comment :vms, :deprecated, "Indicates whether or not a template is deprecated." change_column_comment :vms, :description, "A description of the VM that is typically set by the provider, but may also be edited." - change_column_comment :vms, :ems_created_on, "Date the associated EMS was created." + change_column_comment :vms, :ems_created_on, "Date the VM or Templated was created on the EMS itself." change_column_comment :vms, :ems_id, "ID of the ExtManagementSystem associated with the VM." change_column_comment :vms, :evm_owner_id, "ID of VM owner from product database." change_column_comment :vms, :ems_ref, "A native unique reference for the VM within the EMS." From 4e38a097156892e6a02bd6a5efd30c8337eb8b3d Mon Sep 17 00:00:00 2001 From: Daniel Berger Date: Tue, 30 Oct 2018 10:32:08 -0600 Subject: [PATCH 13/23] Update ems_created_on again. --- db/migrate/20181025230931_add_comments_to_vms_table.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20181025230931_add_comments_to_vms_table.rb b/db/migrate/20181025230931_add_comments_to_vms_table.rb index 6913db36f..a0a3b4b7d 100644 --- a/db/migrate/20181025230931_add_comments_to_vms_table.rb +++ b/db/migrate/20181025230931_add_comments_to_vms_table.rb @@ -28,7 +28,7 @@ def change change_column_comment :vms, :created_on, "The timestamp the VM was added to the app inventory." change_column_comment :vms, :deprecated, "Indicates whether or not a template is deprecated." change_column_comment :vms, :description, "A description of the VM that is typically set by the provider, but may also be edited." - change_column_comment :vms, :ems_created_on, "Date the VM or Templated was created on the EMS itself." + change_column_comment :vms, :ems_created_on, "The timestamp the VM or Templated was created on the EMS itself." change_column_comment :vms, :ems_id, "ID of the ExtManagementSystem associated with the VM." change_column_comment :vms, :evm_owner_id, "ID of VM owner from product database." change_column_comment :vms, :ems_ref, "A native unique reference for the VM within the EMS." From fecf2ec90a8be7de513b1de3f9d939fa10d7d81c Mon Sep 17 00:00:00 2001 From: Daniel Berger Date: Tue, 30 Oct 2018 13:07:07 -0600 Subject: [PATCH 14/23] Updated evm_owner_id. --- db/migrate/20181025230931_add_comments_to_vms_table.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20181025230931_add_comments_to_vms_table.rb b/db/migrate/20181025230931_add_comments_to_vms_table.rb index a0a3b4b7d..7976891c2 100644 --- a/db/migrate/20181025230931_add_comments_to_vms_table.rb +++ b/db/migrate/20181025230931_add_comments_to_vms_table.rb @@ -30,7 +30,7 @@ def change change_column_comment :vms, :description, "A description of the VM that is typically set by the provider, but may also be edited." change_column_comment :vms, :ems_created_on, "The timestamp the VM or Templated was created on the EMS itself." change_column_comment :vms, :ems_id, "ID of the ExtManagementSystem associated with the VM." - change_column_comment :vms, :evm_owner_id, "ID of VM owner from product database." + change_column_comment :vms, :evm_owner_id, "ID of the user that provisioned the VM (if provisioned through the app)." change_column_comment :vms, :ems_ref, "A native unique reference for the VM within the EMS." change_column_comment :vms, :ems_ref_obj, "A YAML serialized version of the ems_ref." change_column_comment :vms, :ems_cluster_id, "ID of associated cluster." From 8bf46df8e4eb543633c2036d70a664dc768ee99a Mon Sep 17 00:00:00 2001 From: Daniel Berger Date: Tue, 30 Oct 2018 13:16:29 -0600 Subject: [PATCH 15/23] Updated the location comment. --- db/migrate/20181025230931_add_comments_to_vms_table.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20181025230931_add_comments_to_vms_table.rb b/db/migrate/20181025230931_add_comments_to_vms_table.rb index 7976891c2..1585c05be 100644 --- a/db/migrate/20181025230931_add_comments_to_vms_table.rb +++ b/db/migrate/20181025230931_add_comments_to_vms_table.rb @@ -51,7 +51,7 @@ def change change_column_comment :vms, :linked_clone, "Indicates whether the VM is a linked clone, i.e its disk is a referencing "\ "disk pointing to snapshot of another VM." - change_column_comment :vms, :location, "The location or region of the VM." + change_column_comment :vms, :location, "The location or region of the VM, or its underlying storage." change_column_comment :vms, :memory_hot_add_enabled, "Indicates whether or not memory can be hot added to the running VM." change_column_comment :vms, :memory_hot_add_increment, "Memory in MB that can be added to a running VM must be in "\ From 73e6d08756d1dd74767166fcb96a54c5e04808e7 Mon Sep 17 00:00:00 2001 From: Daniel Berger Date: Tue, 30 Oct 2018 13:18:14 -0600 Subject: [PATCH 16/23] Updated the location comment. --- db/migrate/20181025230931_add_comments_to_vms_table.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20181025230931_add_comments_to_vms_table.rb b/db/migrate/20181025230931_add_comments_to_vms_table.rb index 1585c05be..039c5d635 100644 --- a/db/migrate/20181025230931_add_comments_to_vms_table.rb +++ b/db/migrate/20181025230931_add_comments_to_vms_table.rb @@ -51,7 +51,7 @@ def change change_column_comment :vms, :linked_clone, "Indicates whether the VM is a linked clone, i.e its disk is a referencing "\ "disk pointing to snapshot of another VM." - change_column_comment :vms, :location, "The location or region of the VM, or its underlying storage." + change_column_comment :vms, :location, "The location of the VM, or its underlying storage." change_column_comment :vms, :memory_hot_add_enabled, "Indicates whether or not memory can be hot added to the running VM." change_column_comment :vms, :memory_hot_add_increment, "Memory in MB that can be added to a running VM must be in "\ From 2ce3bec52f14b15fd57a002ee6bbb0311c7b187c Mon Sep 17 00:00:00 2001 From: Daniel Berger Date: Tue, 30 Oct 2018 13:24:44 -0600 Subject: [PATCH 17/23] Mark the registered column as deprecated. --- db/migrate/20181025230931_add_comments_to_vms_table.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20181025230931_add_comments_to_vms_table.rb b/db/migrate/20181025230931_add_comments_to_vms_table.rb index 039c5d635..12afc8f01 100644 --- a/db/migrate/20181025230931_add_comments_to_vms_table.rb +++ b/db/migrate/20181025230931_add_comments_to_vms_table.rb @@ -76,7 +76,7 @@ def change change_column_comment :vms, :previous_state, "The previous power state change." change_column_comment :vms, :publicly_available, "Indicates whether the VM is public or private." change_column_comment :vms, :raw_power_state, "The power state refreshed from the EMS." - change_column_comment :vms, :registered, "Indicates whether the VM registered to a Provider." + change_column_comment :vms, :registered, "Indicates whether the VM registered to a Provider. Deprecated." change_column_comment :vms, :resource_group_id, "ID of the resource group that the VM/Template belongs to." change_column_comment :vms, :retired, "Indicates whether or not the VM is retired." change_column_comment :vms, :retirement_last_warn, "Date of last retirement warning." From ec0f12dde8900f22a0231bd3d6436a35375267d3 Mon Sep 17 00:00:00 2001 From: Daniel Berger Date: Tue, 30 Oct 2018 13:31:59 -0600 Subject: [PATCH 18/23] Updated evm_owner_id comment. --- db/migrate/20181025230931_add_comments_to_vms_table.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/db/migrate/20181025230931_add_comments_to_vms_table.rb b/db/migrate/20181025230931_add_comments_to_vms_table.rb index 12afc8f01..81afe992d 100644 --- a/db/migrate/20181025230931_add_comments_to_vms_table.rb +++ b/db/migrate/20181025230931_add_comments_to_vms_table.rb @@ -30,7 +30,10 @@ def change change_column_comment :vms, :description, "A description of the VM that is typically set by the provider, but may also be edited." change_column_comment :vms, :ems_created_on, "The timestamp the VM or Templated was created on the EMS itself." change_column_comment :vms, :ems_id, "ID of the ExtManagementSystem associated with the VM." - change_column_comment :vms, :evm_owner_id, "ID of the user that provisioned the VM (if provisioned through the app)." + + change_column_comment :vms, :evm_owner_id, "Typically, the ID of the user that provisioned the VM (if provisioned through the app)."\ + "Can also be set via inventory, the UI or Automate." + change_column_comment :vms, :ems_ref, "A native unique reference for the VM within the EMS." change_column_comment :vms, :ems_ref_obj, "A YAML serialized version of the ems_ref." change_column_comment :vms, :ems_cluster_id, "ID of associated cluster." From e0dcccf2cc991d3a1b1ee3a8a6c653fc30229de4 Mon Sep 17 00:00:00 2001 From: Daniel Berger Date: Tue, 30 Oct 2018 14:42:23 -0600 Subject: [PATCH 19/23] Change XML to just data for last_sync_on. --- db/migrate/20181025230931_add_comments_to_vms_table.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20181025230931_add_comments_to_vms_table.rb b/db/migrate/20181025230931_add_comments_to_vms_table.rb index 81afe992d..2d9b32a29 100644 --- a/db/migrate/20181025230931_add_comments_to_vms_table.rb +++ b/db/migrate/20181025230931_add_comments_to_vms_table.rb @@ -49,7 +49,7 @@ def change change_column_comment :vms, :last_perf_capture_on, "Timestamp for last performance metrics capture." change_column_comment :vms, :last_scan_on, "Timestamp for last SmartState analysis." change_column_comment :vms, :last_scan_attempt_on, "Timestamp for last attempt to perform SmartState Analysis." - change_column_comment :vms, :last_sync_on, "Timestamp for last SmartState analysis." + change_column_comment :vms, :last_sync_on, "Timestamp for when the data from SmartState was last synced with the database." change_column_comment :vms, :linked_clone, "Indicates whether the VM is a linked clone, i.e its disk is a referencing "\ "disk pointing to snapshot of another VM." From dd203ed3b98daba1e6c9883edf11830d334a277d Mon Sep 17 00:00:00 2001 From: Daniel Berger Date: Wed, 31 Oct 2018 15:51:21 -0600 Subject: [PATCH 20/23] Updated last_sync_on and last_scan_on. --- db/migrate/20181025230931_add_comments_to_vms_table.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db/migrate/20181025230931_add_comments_to_vms_table.rb b/db/migrate/20181025230931_add_comments_to_vms_table.rb index 2d9b32a29..9fb176c2c 100644 --- a/db/migrate/20181025230931_add_comments_to_vms_table.rb +++ b/db/migrate/20181025230931_add_comments_to_vms_table.rb @@ -47,9 +47,9 @@ def change change_column_comment :vms, :id, "The internal database ID." change_column_comment :vms, :host_id, "ID of the host that the VM/Template resides on." change_column_comment :vms, :last_perf_capture_on, "Timestamp for last performance metrics capture." - change_column_comment :vms, :last_scan_on, "Timestamp for last SmartState analysis." + change_column_comment :vms, :last_scan_on, "Timestamp for last SmartState analysis scan." change_column_comment :vms, :last_scan_attempt_on, "Timestamp for last attempt to perform SmartState Analysis." - change_column_comment :vms, :last_sync_on, "Timestamp for when the data from SmartState was last synced with the database." + change_column_comment :vms, :last_sync_on, "Timestamp for last SmartState analysis synchronization." change_column_comment :vms, :linked_clone, "Indicates whether the VM is a linked clone, i.e its disk is a referencing "\ "disk pointing to snapshot of another VM." From 25bce1798342bbf13fbb656730775608d463644a Mon Sep 17 00:00:00 2001 From: Daniel Berger Date: Thu, 1 Nov 2018 08:09:40 -0600 Subject: [PATCH 21/23] Fix typo. --- db/migrate/20181025230931_add_comments_to_vms_table.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20181025230931_add_comments_to_vms_table.rb b/db/migrate/20181025230931_add_comments_to_vms_table.rb index 9fb176c2c..e34163748 100644 --- a/db/migrate/20181025230931_add_comments_to_vms_table.rb +++ b/db/migrate/20181025230931_add_comments_to_vms_table.rb @@ -60,7 +60,7 @@ def change change_column_comment :vms, :memory_hot_add_increment, "Memory in MB that can be added to a running VM must be in "\ "increments of this value." - change_column_comment :vms, :memory_hot_add_limit, "The maximum amount of memory, in MB, than can be added to a running VM." + change_column_comment :vms, :memory_hot_add_limit, "The maximum amount of memory, in MB, that can be added to a running VM." change_column_comment :vms, :memory_limit, "The absolute memory limit for the VM." change_column_comment :vms, :memory_reserve, "Amount of memory that is guaranteed available for the VM." From 16728d102ed4289da617563ce900be177d494f31 Mon Sep 17 00:00:00 2001 From: Daniel Berger Date: Fri, 2 Nov 2018 12:22:25 -0600 Subject: [PATCH 22/23] Mark the format column as deprecated. --- db/migrate/20181025230931_add_comments_to_vms_table.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20181025230931_add_comments_to_vms_table.rb b/db/migrate/20181025230931_add_comments_to_vms_table.rb index e34163748..52e111d21 100644 --- a/db/migrate/20181025230931_add_comments_to_vms_table.rb +++ b/db/migrate/20181025230931_add_comments_to_vms_table.rb @@ -42,7 +42,7 @@ def change "crashes it will immediately pick up on another host in the cluster." change_column_comment :vms, :flavor_id, "ID of associated flavor." - change_column_comment :vms, :format, "The format of the VM's disk, such as VMDK." + change_column_comment :vms, :format, "The format of the VM's disk, such as VMDK. Deprecated." change_column_comment :vms, :guid, "A value used to uniquely identify the VM internally." change_column_comment :vms, :id, "The internal database ID." change_column_comment :vms, :host_id, "ID of the host that the VM/Template resides on." From a12453748734f4ec4d19d82b45bf4f5290c27d86 Mon Sep 17 00:00:00 2001 From: Daniel Berger Date: Mon, 5 Nov 2018 13:13:01 -0700 Subject: [PATCH 23/23] Switch change to up since it's not reversible. --- db/migrate/20181025230931_add_comments_to_vms_table.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20181025230931_add_comments_to_vms_table.rb b/db/migrate/20181025230931_add_comments_to_vms_table.rb index 52e111d21..eaf3e3f7f 100644 --- a/db/migrate/20181025230931_add_comments_to_vms_table.rb +++ b/db/migrate/20181025230931_add_comments_to_vms_table.rb @@ -1,5 +1,5 @@ class AddCommentsToVmsTable < ActiveRecord::Migration[5.0] - def change + def up change_table_comment :vms, "Virtual Machines and Templates" change_column_comment :vms, :autostart, "Indicates whether or not the VM is set to autostart."