Exception: ActiveRecord::InvalidForeignKey
- Inherits:
-
WrappedDatabaseException
- Object
- StandardError
- ActiveRecordError
- StatementInvalid
- WrappedDatabaseException
- ActiveRecord::InvalidForeignKey
- Defined in:
- activerecord/lib/active_record/errors.rb
Overview
Raised when a record cannot be inserted or updated because it references a non-existent record.
Instance Attribute Summary
Attributes inherited from WrappedDatabaseException
Method Summary
Methods inherited from WrappedDatabaseException
Constructor Details
This class inherits a constructor from ActiveRecord::WrappedDatabaseException