Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle ActiveRecord::Locking::LockingType
ActiveRecord::Locking::LockingType is used for the lock_version column to handle Optimistic Locking: https://api.rubyonrails.org/classes/ActiveRecord/Locking/Optimistic.html - This type was falling into the else block and causing a Sorbet Error: Expected type ::Object, got type ActiveRecord::Locking::LockingType with value #<ActiveModel::Type::Intege...ange=-2147483648...2147483648> (SorbetError) The column_type is really just a wrapper for a potentially nilable integer, so we make a specific exception for it. Co-authored-by: Carlos Quinones <[email protected]> Co-authored-by: Alexander Momchilov <[email protected]>
- Loading branch information