Sha256: a02dcebce6923e34026bdac2362eed946994a88db4fdba2933d35cbeaa4ff40a
Contents?: true
Size: 527 Bytes
Versions: 3
Compression:
Stored size: 527 Bytes
Contents
module ActiveArchive module TableDefinition def timestamps(*args) options = args.extract_options! options[:null] = false if options[:null].nil? column(:created_at, :datetime, options) column(:updated_at, :datetime, options) if ActiveArchive::Settings.config.all_records_archivable == true options[:null] = true column(:archived_at, :datetime, options) end end end end ActiveRecord::ConnectionAdapters::TableDefinition.prepend(ActiveArchive::TableDefinition)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
active_archive-4.0.2 | lib/active_archive/table_definition.rb |
active_archive-4.0.1 | lib/active_archive/table_definition.rb |
active_archive-4.0.0 | lib/active_archive/table_definition.rb |