old_container = Container.find_by_uuid(self.container_uuid_was)
old_logs = Collection.where(portable_data_hash: old_container.log).first
if old_logs
old_container = Container.find_by_uuid(self.container_uuid_was)
old_logs = Collection.where(portable_data_hash: old_container.log).first
if old_logs
if self.log_uuid.nil?
log_coll = Collection.new(
owner_uuid: self.owner_uuid,
if self.log_uuid.nil?
log_coll = Collection.new(
owner_uuid: self.owner_uuid,
# copy logs from old container into CR's log collection
src = Arv::Collection.new(old_logs.manifest_text)
dst = Arv::Collection.new(log_coll.manifest_text)
# copy logs from old container into CR's log collection
src = Arv::Collection.new(old_logs.manifest_text)
dst = Arv::Collection.new(log_coll.manifest_text)