Sha256: 4b891583232a21c04962366a85e35f79ff872b0dafe4f27931a9b720b6b42498

Contents?: true

Size: 346 Bytes

Versions: 1

Compression:

Stored size: 346 Bytes

Contents

module ActiveRecord
  module ConnectionAdapters
    class TableDefinition

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

      alias_method_chain(:timestamps, :archived_at)

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_archive-3.0.0 lib/active_archive/table_definition.rb