20300: Mark belongs_to relations as optional.
[arvados.git] / services / api / app / models / keep_disk.rb
index 4623393d0caf4371dfb366b6051df0f60fd72e82..589936f84521d1fa66460b088fccbc8e31468b7a 100644 (file)
@@ -1,3 +1,7 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
 class KeepDisk < ArvadosModel
   include HasUuid
   include KindAndEtag
@@ -36,7 +40,7 @@ class KeepDisk < ArvadosModel
     end
 
     @bypass_arvados_authorization = true
-    self.update_attributes!(o.select { |k,v|
+    self.update!(o.select { |k,v|
                              [:bytes_total,
                               :bytes_free,
                               :is_readable,