indexing polymorphic associations

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • 2.1.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When I add an index like this:

      belongs_to :targetable, polymorphic: true, index: true

      only targetable_id gets index when I run db:create_indexes. Is that expected?

      Perhaps it's enough given that Object IDs are unique across clusters?

              Assignee:
              Unassigned
              Reporter:
              Fredrik Björk
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: