diff --git a/app/models/storage_profile.rb b/app/models/storage_profile.rb index 5c7be1c20a3..a3f403d51fc 100644 --- a/app/models/storage_profile.rb +++ b/app/models/storage_profile.rb @@ -1,5 +1,5 @@ class StorageProfile < ApplicationRecord - belongs_to :ext_management_system + belongs_to :ext_management_system, :foreign_key => :ems_id has_many :storage_profile_storages, :dependent => :destroy has_many :storages, :through => :storage_profile_storages has_many :vms_and_templates, :dependent => :nullify