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
9
10
# File 'lib/active_archive/table_definition.rb', line 5

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