X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/43a95731adfcf942fd9ab598c2b8e2c80911de0c..3ede205bf0e5af7a88e04009cd66ff111e0729c3:/services/api/app/models/arvados_model.rb diff --git a/services/api/app/models/arvados_model.rb b/services/api/app/models/arvados_model.rb index 35dd1a94c9..6cd40a4458 100644 --- a/services/api/app/models/arvados_model.rb +++ b/services/api/app/models/arvados_model.rb @@ -115,6 +115,10 @@ class ArvadosModel < ActiveRecord::Base ["#{table_name}.modified_at desc", "#{table_name}.uuid"] end + def self.unique_columns + ["id", "uuid"] + end + # If current user can manage the object, return an array of uuids of # users and groups that have permission to write the object. The # first two elements are always [self.owner_uuid, current user's