ActiveRecord SoleRecordExceeded class SoleRecordExceeded Ruby on Rails 8.1.2 Since v7.0.10 Available in: v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2 Compare with: (choosing a version navigates to the comparison) Choose a version v7.0.10 · same v7.1.6 · same v7.2.3 · same v8.0.4 · same Raised when Active Record finds multiple records but only expected one. Inherits from ActiveRecord::ActiveRecordError Attributes ActiveRecord::SoleRecordExceeded#record Methods (defined here) self. new On this page Attributes Methods Support Bug Reports can be filed for the Ruby on Rails project on GitHub. Feature requests should be discussed on the rubyonrails-core forum. License Released under the MIT license.