Skip to content

Commit

Permalink
Merge pull request #1543 from sem42198/ANW-670
Browse files Browse the repository at this point in the history
ANW-670: handle deleting assessment attribute notes when deleting assessment
  • Loading branch information
lmcglohon committed Apr 22, 2019
2 parents e188909 + 01473b0 commit 0c74477
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/app/model/assessment.rb
Expand Up @@ -334,6 +334,7 @@ def self.json_key_for_type(target_type)

def self.handle_delete(ids_to_delete)
DB.open do |db|
db[:assessment_attribute_note].filter(:assessment_id => ids_to_delete).delete
db[:assessment_attribute].filter(:assessment_id => ids_to_delete).delete
end

Expand Down

0 comments on commit 0c74477

Please sign in to comment.