Sha256: d2784deea195d3c9bf2bf249c6893f03ba2a6d8c89dea1fdb57d54b5cc9d4252

Contents?: true

Size: 369 Bytes

Versions: 5

Compression:

Stored size: 369 Bytes

Contents

module ActiveRecord
  module ConnectionAdapters
    class TableDefinition

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

      alias_method_chain(:timestamps, :archived_at)

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
active_archive-2.2.0 lib/active_archive/table_definition.rb
active_archive-2.1.0 lib/active_archive/table_definition.rb
active_archive-2.0.0 lib/active_archive/table_definition.rb
active_archive-1.0.0 lib/active_archive/table_definition.rb
active_archive-0.1.0 lib/active_archive/table_definition.rb