RailsDoc(β)
v5.2
v7.2
v7.1
v7.0
v6.1
v6.0
v5.2
GitHub
Ruby on Rails 5.2.8
Class
ActiveRecord::InvalidForeignKey
<
ActiveRecord::WrappedDatabaseException
activerecord/lib/active_record/errors.rb
Raised when a record cannot be inserted or updated because it references a non-existent record.