Class VestalVersions::Version
In: lib/vestal_versions/version.rb
Parent: ActiveRecord::Base

The ActiveRecord model representing versions.

Methods

<=>   initial?  

Included Modules

Comparable

Public Instance methods

In conjunction with the included Comparable module, allows comparison of version records based on their corresponding version numbers, creation timestamps and IDs.

Returns whether the version has a version number of 1. Useful when deciding whether to ignore the version during reversion, as initial versions have no serialized changes attached. Helps maintain backwards compatibility.

[Validate]