do cdq.contexts.push(parent) cdq.contexts.new(NSPrivateQueueConcurrencyType) do context = cdq.contexts.current m1 = context.objectWithID(m.objectID) m1.characters.create name: "C-3PO" m1.characters.create name: "R2-D2" cdq.save Dispatch::Queue.main.sync { p Movie.new_hope.first.characters.map(&:name) } end end end