Exception: ActiveRecord::UnknownPrimaryKey
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
ActiveRecordError,
StandardError
|
|
|
Instance Chain:
self,
ActiveRecordError,
StandardError
|
|
| Inherits: |
ActiveRecord::ActiveRecordError
|
| Defined in: | activerecord/lib/active_record/errors.rb |
Overview
Raised when a primary key is needed, but not specified in the schema or model.
Class Method Summary
Instance Attribute Summary
- #model readonly
Constructor Details
.new(model = nil, description = nil) ⇒ UnknownPrimaryKey
Instance Attribute Details
#model (readonly)
[ GitHub ]# File 'activerecord/lib/active_record/errors.rb', line 473
attr_reader :model