You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running bundle exec rake db:migrate gives me this error
rake aborted!
Problem:
Invalid option :in provided for field :record_type.
Summary:
Mongoid requires that you only provide valid options on each field definition in order to prevent unexpected behaviour later on.
Resolution:
When defining the field :record_type on 'Freereg1CsvFile', please provide valid options for the field. These are currently: as, default, identity, label, localize, metadata, pre_processed, subtype, type, versioned. If you meant to define a custom field option, please do so first like so:
  Mongoid::Fields.option :in do |model, field, value|
    # Your logic here...
  end
  class Freereg1CsvFile
    include Mongoid::Document
    field :record_type, in: true
  end
The text was updated successfully, but these errors were encountered:
Running
bundle exec rake db:migrate
gives me this errorThe text was updated successfully, but these errors were encountered: