Allow identifier reset

This commit is contained in:
2018-08-16 13:35:31 +02:00
parent 86772df197
commit 0c9aa61b7d
@@ -17,6 +17,15 @@ module HasUuidIdentifier
end
end
def reset_identifier
self.identifier = UUIDTools::UUID.timestamp_create.to_s
end
def reset_identifier!
reset_identifier
save
end
private
def ensure_identifier