Overview of positioning logic
mainThe positioning gem allows you to manage sequential integer positions (starting at 1) for Active Record model instances within a specific scope.
To maintain consistency and ensure positions remain sequential, the gem attempts to perform changes within a transaction. Instead of manually assigning integer values to a position column, it is recommended to move items by declaring an item's prior or subsequent item in the list. This allows the gem to calculate the new position relative to the specified neighbor.