Module: Extensions::TimeBoundedRecord::ActiveRecord::ConnectionAdapters::TableDefinition

Defined in:
lib/extensions/time_bounded_record/active_record/connection_adapters/table_definition.rb

Instance Method Summary collapse

Instance Method Details

#time_bounded(*args) ⇒ Object

Enforces a date range for the given table.

See Also:


6
7
8
9
# File 'lib/extensions/time_bounded_record/active_record/connection_adapters/table_definition.rb', line 6

def time_bounded(*args)
  datetime :start_at, *args
  datetime :end_at, *args
end