Exception: Hoardable::CreatedAtColumnMissingError
- Defined in:
- lib/hoardable/error.rb
Overview
An error to be raised when ‘created_at’ columns are missing for Models.
Instance Method Summary collapse
-
#initialize(source_table_name) ⇒ CreatedAtColumnMissingError
constructor
A new instance of CreatedAtColumnMissingError.
Constructor Details
#initialize(source_table_name) ⇒ CreatedAtColumnMissingError
Returns a new instance of CreatedAtColumnMissingError.
10 11 12 13 14 15 |
# File 'lib/hoardable/error.rb', line 10 def initialize(source_table_name) super(<<~LOG) '#{source_table_name}' does not have a 'created_at' column, so the start of the first version’s temporal period cannot be known. Add a 'created_at' column to '#{source_table_name}'. LOG end |