- #15 -
validates :bitemporal_id, uniqueness: true
is no raise by default. - #19 - Fix create history records after logical destroy in #destroy.
- #12 - Added utility (and extension) scopes.
.bitemporl_for(id)
.valid_in(from: from, to: to)
.valid_allin(from: from, to: to)
.bitemporal_histories_by(id)
.bitemporal_most_future(id)
.bitemporal_most_past(id)
- #15 - Added
.bitemporalize
. Use.bitemporalize
instead ofinclude ActiveRecord::Bitemporal
. - #15 - Added
.bitemporalize
options.
option | describe | default |
---|---|---|
enable_strict_by_validates_bitemporal_id |
raised with validates :bitemporal_id, uniqueness: true if true |
false |
- #17 - Fixed bug in create record with valid_datetime out of the range valid_from to valid_to.
- #18 -
record.valid_datetime
is not nil when afterModel.valid_at("2019/1/1").ignore_valid_datetime
. - #18 -
ignore_valid_datetime
is not applied inActiveRecord::Bitemporal.valid_at!
. - #21 - Fixed bug in multi thread with
#update
. - #24 #25 - Fixed bug. Does not respect table alias on join clause.
- #27 - Fixed a bug that
swapped_id
doesn't change after#reload
. - #28 - Fix the bug that
valid_from == valid_to
record is generated.
- None