Class: ActiveRecord::ConnectionAdapters::TableDefinition

Inherits:
Object
  • Object
show all
Defined in:
lib/active_archive/table_definition.rb

Instance Method Summary collapse

Instance Method Details

#timestamps_with_archived_at(options) ⇒ Object



5
6
7
8
# File 'lib/active_archive/table_definition.rb', line 5

def timestamps_with_archived_at(options)
  timestamps_without_archived_at(options)
  column(:archived_at, :datetime) if ActiveArchive.configuration.all_records_archivable
end