Exception: ActiveRecord::InvalidForeignKey

WrappedDatabaseException show all
Defined in:


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

#binds, #sql

Method Summary

Methods inherited from StatementInvalid

#initialize, #set_query

Constructor Details

This class inherits a constructor from ActiveRecord::StatementInvalid