Module: Phronomy::ActiveRecord::Checkpoint
- Defined in:
- lib/phronomy/active_record/checkpoint.rb
Overview
Mixin for models backed by the phronomy_checkpoints table. Validates the required columns and exposes a convenience factory.
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
14 15 16 17 |
# File 'lib/phronomy/active_record/checkpoint.rb', line 14 def self.included(base) base.validates :thread_id, presence: true base.validates :state_json, presence: true end |