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

Boolean defaults no longer work

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 12_01_17
    • Affects Version/s: 6.0.0
    • Component/s: None
    • Labels:
      None

      This has always worked, but In latest trunk, it is throwing a validation error:

        field :flagged, type: Mongoid::Boolean, default: false
      

      When I try to create an object, it says:

      The following errors were found: Flagged By can't be blank
      

      Any ideas?

            Assignee:
            emily.stolfo Emily Stolfo
            Reporter:
            hackeron Roman Gaufman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: