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

Make the parent mandatory for a child in a belongs_to relation

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: 6.0.0
    • Component/s: None
    • Labels:
      None
    • Sprint:
      Ruby Sprint 32

      Description

      For associations via 'belongs_to', Rails 5 ActiveRecord requires a parent relation to be set on a child before it can be saved.
      We should parallel this in Mongoid.

        Attachments

          Activity

            People

            • Assignee:
              emily.stolfo Emily Stolfo
              Reporter:
              emily.stolfo Emily Stolfo
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: