Skip to content

Commit

Permalink
fix storage profile ems foreign key
Browse files Browse the repository at this point in the history
got the error that there is no ext_management_system_id
which is valid.

All other belongs_to :ext_management_system declarations also include
the foreign key

This caused an error when assigning an ems to a storage profile
  • Loading branch information
kbrock committed Apr 1, 2020
1 parent 4d81350 commit 4cdcf40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/storage_profile.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 4cdcf40

Please sign in to comment.