class ActiveRecord::UnknownPrimaryKey

Raised when a primary key is needed, but not specified in the schema or model.