class Mongoid::Errors::ReadonlyAttribute

This error is raised when attempting the change the value of a readonly attribute after the document has been persisted.