-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Description
Seems like a bug. Or no functionaly for that. Or i do smth wrong.
Steps to reproduce.
``1. rails c
Model
class Test
### INCLUDES AND EXTENDS
include Mongoid::Document
include Mongoid::Timestamps
include Mongoid::Orderable
orderable field: :position
### Fields
field :rate, type: Integer
field :position, type: Integer
end
Test.create!(rate: 80)
Test.create!(rate: 70)
Test.create!(rate: 60)
# Bug
Test.create!(rate: 30, position: 2)
Responce
#<Test _id: 64db673bc9876f69e0f19c91, created_at: 2023-08-15 11:53:27 UTC, updated_at: 2023-08-15 11:53:27 UTC, position: 4, rate: 30>
Help me or I write this functionality by myself.
Metadata
Metadata
Assignees
Labels
No labels