module PlaceOS::Model::Utilities::Versions

Overview

Adds version history to a PlaceOS::Model

Direct including types

Defined in:

placeos-models/utilities/versions.cr

Constant Summary

MAX_VERSIONS = (ENV["PLACE_MAX_VERSIONS"]?.try(&.to_i?) || 20)

Number of version models to retain

Instance Method Summary

Instance Method Detail

abstract def create_version(version : self) : self #

Make relevant updates to version before it is saved