CompanyBook / massive_record

HBase ruby client
130 stars 39 forks source link

Implement a change_id! method #59

Closed thhermansen closed 13 years ago

thhermansen commented 13 years ago

Some times we actually want to change id of a record. The use case for it is when we for instance have ids which starts with another records id and leverages that in a references_many. Say we want to do a soft-deletion of that record. Then we can change it's id to something which prefixes it with deleted or something, and thus we'll still have the record, but it will be outside of the references_many's scope.