This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Check all the possible events for troubled piggybacks | |
parent_problematic = [] # collect all event registrations independent of the event | |
[34541, 33921, 24391, 34931, 33821, 34221, 35091, 17891, 34071, 35291, 34611, 34051, 31391, 37821].each do |ev_id| | |
Event.find(ev_id).event_registrations.where("parent_registration_id IS NOT NULL").map{|r| | |
r.parent_registration_id}.uniq.each do |parent_registration_id| | |
parent_registration = nil | |
begin | |
parent_registration = EventRegistration.find(parent_registration_id) | |
rescue | |
#break |
NewerOlder