class CloudVolumeType < ApplicationRecord
  include NewWithTypeStiMixin
  include ProviderObjectMixin

  acts_as_miq_taggable

  belongs_to :ext_management_system, :foreign_key => :ems_id, :class_name => "ExtManagementSystem"

  def self.class_by_ems(ext_management_system)
    ext_management_system && ext_management_system.class::CloudVolumeType
  end
end

class CloudVolumeType < ApplicationRecord
  # CloudVolumeTypes represent various "flavors" of
  # volume that are available to create within a given
  # Storage service.
  include NewWithTypeStiMixin
  include ProviderObjectMixin

  acts_as_miq_taggable

  belongs_to :ext_management_system, :foreign_key => :ems_id, :class_name => "ExtManagementSystem"

  def self.class_by_ems(ext_management_system)
    ext_management_system && ext_management_system.class::CloudVolumeType
  end
end

Add explanatory comment to CloudVolumeType definition
Add explanatory comment to CloudVolumeType definition
