Skip to content

Commit

Permalink
Fix nuke!()
Browse files Browse the repository at this point in the history
Broken by 200e029
  • Loading branch information
Alex Dolski committed Mar 8, 2024
1 parent 81762c6 commit f711c96
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/institution.rb
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,8 @@ def medusa_file_group
#
def nuke!
raise "You maniac, you can only nuke an institution in test!" unless Rails.env.test?
self.metadata_profiles.destroy_all
self.submission_profiles.destroy_all
self.imports.destroy_all
self.users.destroy_all
self.units.each do |unit|
Expand Down

0 comments on commit f711c96

Please sign in to comment.