• Douglas Barbosa Alexandre's avatar
    Fix edge cases while iterating over model and registry table · c3f0351c
    Douglas Barbosa Alexandre authored
    There are some edge cases to take into acocunt:
    
    1. When there are unused registries, but there no
       replicable records next_range! returns nil;
    2. When the unused registry foreign key ids are greater
       than the last replicable record id;
    3. When the unused registry foreign key ids are lower
       than the first replicable record id;
    c3f0351c
registry_batcher.rb 5.58 KB