Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-2539

more accurate model tracking makes tasks non-broken

    • Type: Icon: Task Task
    • Resolution: Done
    • 3.1.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      previous versions of mongoid attempted to guess models from file names. this is broken when and model is defined any place outside the 'normal' search path, and leads to such errors as missing uniq indexes on models. these commits

      • add reload safe ability for mongoid to know all it's models deterministically via Mongoid::Document.included
      • adds non-broken created_indexes and remove_indexes (backwards compatible)

            Assignee:
            Unassigned Unassigned
            Reporter:
            ahoward ara.t.howard
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: