diff --git a/app/models/snapshot.rb b/app/models/snapshot.rb index f2acdac574e..2fb30b68d0d 100644 --- a/app/models/snapshot.rb +++ b/app/models/snapshot.rb @@ -1,7 +1,7 @@ require 'time' class Snapshot < ApplicationRecord - acts_as_tree + acts_as_tree :dependent => :nullify belongs_to :vm_or_template