这是indexloc提供的服务,不要输入任何密码
Skip to content

Issue with time traveling #253

@dixpac

Description

@dixpac

Tell us about your environment

Ruby Version:
ruby-3.3.5

Rails Version:
8.0.0

PostgreSQL Version:
PostgreSQL 14.11 (Postgres.app) on aarch64-apple-darwin20.6.0, compiled by Apple clang version 12.0.5 (clang-1205.0.22.9), 64-bit

Logidze Version:
1.3.1

What did you do?

I'm trying to time-travel base on updated_at, book.at(time: book.updated_at), but I looks like it is not working properly:

Screenshot 2024-12-08 at 12 44 32

It's a simple dummy project User has many Books, here is structure.sql

What did you expect to happen?

When I run book.at(time: book.updated_at) I expect to get the latest version. (v3 in this case)

What actually happened?

I get second_to_last version (v2 in this case)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions