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