X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/03395937ba05b9e3192e346a355c691f45cc7c85..63cfe7a9b391e1a07c6c6c8b0fab10b1c875f1be:/services/api/lib/can_be_an_owner.rb diff --git a/services/api/lib/can_be_an_owner.rb b/services/api/lib/can_be_an_owner.rb index 16a878347a..75a63509c2 100644 --- a/services/api/lib/can_be_an_owner.rb +++ b/services/api/lib/can_be_an_owner.rb @@ -14,7 +14,7 @@ module CanBeAnOwner base.has_many(t.to_sym, foreign_key: :owner_uuid, primary_key: :uuid, - dependent: :restrict) + dependent: :restrict_with_exception) end # We need custom protection for changing an owner's primary # key. (Apart from this restriction, admins are allowed to change