[ARVADOS] updated: 4d1c7f9514163b6e6949dda814bb524eeff586d9
git at public.curoverse.com
git at public.curoverse.com
Sun May 4 14:49:55 EDT 2014
Summary of changes:
services/api/app/models/log.rb | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
via 4d1c7f9514163b6e6949dda814bb524eeff586d9 (commit)
from 988726079e8e2f8ce4b49115c10a8a1d22040972 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 4d1c7f9514163b6e6949dda814bb524eeff586d9
Author: Tom Clegg <tom at curoverse.com>
Date: Sun May 4 14:49:11 2014 -0400
Do not try to record object_owner_uuid during earlier migrations.
diff --git a/services/api/app/models/log.rb b/services/api/app/models/log.rb
index e6969be..66ba1d7 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
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list