Module: ColdStorage::RowReader

Included in:
Archiver, Restorer
Defined in:
lib/cold_storage/row_reader.rb

Overview

Reads rows as plain hashes, cast by the database column types rather than by the model's attribute types.

This is what makes a copy faithful: model level serializers, enums and default scopes are bypassed on both sides, while jsonb stays a Hash, arrays stay Arrays and numerics stay BigDecimals - so the same values are written back into identically typed columns on the other side.