Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Blocker - P1
    • Resolution: Duplicate
    • Affects Version/s: 7.0.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Ruby 2.4, Rails 5.2.0

      Description

      Here is the rake task that will simulate error. Error appears only when validates line is present.

      class TestCollection
      include Mongoid::Document
      include Mongoid::Timestamps

      field :text, type: String

      validates :text, presence: true
      end

      namespace :error do
      desc "Simulate error in mongoid 7.0.0"
      task :simulate => :environment do
      test = TestCollection.new(
      text: 'text'
      )
      test.save
      end
      end

       

      by
      TheR

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            ther Damjan Rems
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: