Skip to content

Commit

Permalink
Remove service instances for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Ladas committed Aug 27, 2018
1 parent 8314f41 commit 3b772fc
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 13 deletions.
1 change: 0 additions & 1 deletion app/models/ext_management_system.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ def self.api_allowed_attributes

has_many :vms_and_templates_advanced_settings, :through => :vms_and_templates, :source => :advanced_settings
has_many :service_offerings, :foreign_key => :ems_id, :dependent => :destroy, :inverse_of => :ext_management_system
has_many :service_instances, :foreign_key => :ems_id, :dependent => :destroy, :inverse_of => :ext_management_system
has_many :service_parameters_sets, :foreign_key => :ems_id, :dependent => :destroy, :inverse_of => :ext_management_system

validates :name, :presence => true, :uniqueness => {:scope => [:tenant_id]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,6 @@ def service_parameters_sets
add_common_default_values
end

def service_instances
add_common_default_values
end

protected

def custom_reconnect_block
Expand Down
5 changes: 0 additions & 5 deletions app/models/service_instance.rb

This file was deleted.

1 change: 0 additions & 1 deletion app/models/service_offering.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ class ServiceOffering < ApplicationRecord
belongs_to :service_broker

has_many :service_parameters_sets, :dependent => :nullify
has_many :service_instances, :dependent => :nullify
end
2 changes: 0 additions & 2 deletions app/models/service_parameters_set.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
class ServiceParametersSet < ApplicationRecord
belongs_to :ext_management_system, :foreign_key => "ems_id", :inverse_of => :service_parameters_sets
belongs_to :service_offering

has_many :service_instances, :dependent => :nullify
end

0 comments on commit 3b772fc

Please sign in to comment.