[ARVADOS] updated: 33b49fa0be7d8e0774c80ec315985dcdf8535962
git at public.curoverse.com
git at public.curoverse.com
Thu May 1 10:06:26 EDT 2014
Summary of changes:
.../20140423132913_add_object_owner_to_logs.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
via 33b49fa0be7d8e0774c80ec315985dcdf8535962 (commit)
from 83781a4f423a3671a5ec6d4b1cd6a0bbeacef3a6 (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 33b49fa0be7d8e0774c80ec315985dcdf8535962
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date: Thu May 1 10:06:19 2014 -0400
Changed Log.all.each to Log.find_each because Log.all loads all records (!) and
Log.find_each loads records in batches. Hopefully this will enable migration
to run without being killed.
diff --git a/services/api/db/migrate/20140423132913_add_object_owner_to_logs.rb b/services/api/db/migrate/20140423132913_add_object_owner_to_logs.rb
index 7fa4702..b8ca438 100644
--- a/services/api/db/migrate/20140423132913_add_object_owner_to_logs.rb
+++ b/services/api/db/migrate/20140423132913_add_object_owner_to_logs.rb
@@ -4,7 +4,7 @@ class AddObjectOwnerToLogs < ActiveRecord::Migration
def up
add_column :logs, :object_owner_uuid, :string
act_as_system_user do
- Log.all.each do |log|
+ Log.find_each do |log|
if log.properties[:new_attributes]
log.object_owner_uuid = log.properties[:new_attributes][:owner_uuid]
elsif log.properties[:old_attributes]
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list