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

Boolean defaults no longer work

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 12_01_17
    • 6.0.0
    • None
    • None

    Description

      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?

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: