ActiveRecord::InvalidForeignKey

Raised when a record cannot be inserted or updated because it references a non-existent record.