Skip to content

Commit

Permalink
Ticket CV2-5653 [WIP]: Applying PR review
Browse files Browse the repository at this point in the history
  • Loading branch information
caiosba committed Nov 24, 2024
1 parent 25d9eaf commit 5a81c86
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ def change
raise "No relationship to keep for target_id #{pm_id}!" if keep.nil?
relationships.each do |relationship|
if relationship.id == keep.id
puts " Keeping relationship ##{r.id}"
puts " Keeping relationship ##{relationship.id}"
else
puts " Deleting relationship ##{r.id}"
relationship.destroy!
puts " Deleting relationship ##{relationship.id}"
relationship.delete
end
relationship.source.clear_cached_fields
relationship.target.clear_cached_fields
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ namespace :check do
raise "No relationship to keep for target_id #{pm_id}!" if keep.nil?
relationships.each do |relationship|
if relationship.id == keep.id
puts " Keeping relationship ##{r.id}"
puts " Keeping relationship ##{relationship.id}"
else
puts " Deleting relationship ##{r.id}"
relationship.destroy!
puts " Deleting relationship ##{relationship.id}"
relationship.delete
end
relationship.source.clear_cached_fields
relationship.target.clear_cached_fields
Expand Down

0 comments on commit 5a81c86

Please sign in to comment.