Exception: Hoardable::UpdatedAtColumnMissingError

Inherits:
Error
  • Object
show all
Defined in:
lib/hoardable/error.rb

Overview

An error to be raised when ‘updated_at’ columns are missing for Models.

Instance Method Summary collapse

Constructor Details

#initialize(source_table_name) ⇒ UpdatedAtColumnMissingError

Returns a new instance of UpdatedAtColumnMissingError.



20
21
22
23
24
25
# File 'lib/hoardable/error.rb', line 20

def initialize(source_table_name)
  super(<<~LOG)
      '#{source_table_name}' does not have an 'updated_at' column, so Hoardable cannot look up
      associated record versions with it. Add an 'updated_at' column to '#{source_table_name}'.
    LOG
end