ActiveRecord SoleRecordExceeded class SoleRecordExceeded Ruby on Rails 7.1.6 Since v7.0.10 Available in: v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2 Compare with: … v7.0.10 v7.2.3 v8.0.4 v8.1.2 Raised when Active Record finds multiple records but only expected one. Inherits from ActiveRecord::ActiveRecordError Attributes ActiveRecord::SoleRecordExceeded#record Methods (defined here) self. new