X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/ccce5e8ad71ed2e50ecd57c0f73f1aaafc468539..2de827e57ae9ba1b0d322199d071ae900a5b7e0c:/services/api/app/models/log.rb diff --git a/services/api/app/models/log.rb b/services/api/app/models/log.rb index e6969be87c..66ba1d7ef5 100644 --- a/services/api/app/models/log.rb +++ b/services/api/app/models/log.rb @@ -24,7 +24,11 @@ class Log < ArvadosModel def fill_object(thing) self.object_uuid ||= thing.uuid - self.object_owner_uuid = thing.owner_uuid + if respond_to? :object_owner_uuid= + # Skip this if the object_owner_uuid migration hasn't happened + # yet, i.e., we're in the process of migrating an old database. + self.object_owner_uuid = thing.owner_uuid + end self.summary ||= "#{self.event_type} of #{thing.uuid}" self end