Releases: aws/aws-record-ruby
Release v2.6.0 - 2021-05-13
Release v2.5.0 - 2020-10-13
Release v2.4.1 - (2020-05-29)
Release v2.4.0 - 2019-07-16
References: #98
- Feature - Aws::Record::BuildableSearch - Adds support for query and scan builders using substitution expressions. This allows for streamlined and expressive queries and scans using aws-record.
Release v2.3.0 - 2019-02-08
References: #91
- Feature - Aws::Record::Transactions - Adds support for transactional find and transactional get requests. You can learn more about these new APIs in the documentation.
Release v2.2.0 - 2018-12-05
References: #89
- Feature - Aws::Record::TableConfig - Adds support for the "PAY_PER_REQUEST" billing mode in table configurations.
Release v2.1.2 - 2018-11-15
- Issue - Aws::Record::Marshalers::EpochTimeMarshaler - Fixed a bug where epoch time objects didn't properly marshal from database entries.
Release v2.1.1 - 2018-07-10
References: #84
-
Feature - Aws::Record::TableConfig - Adds
:ttl_attribute
to the TableConfig DSL. When used withepoch_time_attr
attributes or other attributes stored as epoch time, your TableConfig migrations will enable TTL on your DynamoDB table, and will use your specified attribute as the TTL attribute. -
Feature - Aws::Record::Marshalers::EpochTimeMarshaler - Adds the
epoch_time_attr
, which behaves much liketime_attr
except the Amazon DynamoDB storage type is numeric, and the serialized value is epoch seconds.
Release v2.1.0 - 2018-06-25
-
Feature - Aws::Record - Add the
persisted?
,new_record?
, anddestroyed?
methods toAws::Record
, which supports use cases where you'd like to see if a record has just been newly initialized, or has been deleted or was a preexisting record retrieved from DynamoDB. Note that these methods are present inActiveModel::Model
so you should require that module beforeAws::Record
-
Feature - Aws::Record - Add the
assign_attributes
,update
, andupdate!
methods toAws::Record
which supports the use case where the user might want to mass assign or update a records attributes by hash.update!
also ensures that aValidationError
is thrown on an invalid update -
Upgrading - If you already include
ActiveModel::Model
on your models the newpersisted?
,new_record?
anddestroyed?
methods will not function properly unless you includeActiveModel::Model
beforeAws::Record
. Additionally, new methods could lead to collisions if you happened to have attributes such as:update
or:assign_attributes
. In such a case, you would want to version lock below2.1.0
, or use the:database_attribute_name
property and change your attribute name in code.
Release v2.0.2 - 2018-06-08
References: #79
- Feature - Aws::Record::Marshalers::TimeMarshaler - Adds the
time_attr
method to AWS Record models, which usesTime
as the underlying type.