Exception: Hoardable::UpdatedAtColumnMissingError
- Defined in:
- lib/hoardable/error.rb
Overview
An error to be raised when ‘updated_at’ columns are missing for Models.
Instance Method Summary collapse
-
#initialize(source_table_name) ⇒ UpdatedAtColumnMissingError
constructor
A new instance of UpdatedAtColumnMissingError.
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 |