使用vestal_versions 进行版本化关联?

发布于 2024-09-08 03:04:37 字数 225 浏览 7 评论 0 原文

在切换到另一个可以支持版本关联的版本控制 gem 之前,我想确定 Vestal_versions 是否支持版本关联(似乎不支持)。 has_versioning。我还没有查看代码,但我无法从自述文件或 github 上的问题部分找到与版本关联相关的任何内容。帮助将不胜感激!

I'd like to be sure if vestal_versions does support versioned associations (it seems like it doesn't) before switching out to another versioning gem that can support versioned associations e.g => has_versioning. I haven't looked at the code yet but I couldn't find anything related with versioned associations from the readme file or the issue section on github. Help would be appreciated!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

无声无音无过去 2024-09-15 03:04:37

(在撰写本文时)官方 协会分支 href="http://github.com/laserlemon/vestal_versions" rel="nofollow noreferrer">vestal_versions 存储库,它仍然是一个基本想法,尚未合并到 master 分支中。因此,我决定使用另一个版本控制 gem,特别是按照 acts_as_revisable ://withoutscope.com/2009/5/12/simple-association-versioning-with-acts_as_revisable" rel="nofollow noreferrer">此博客文章。

(At the moment of writing this) There is an associations branch in the official vestal_versions repository, It is still a basic idea and isn't merged yet in the master branch. So I decided to go with another versioning gem, specifically acts_as_revisable following the instructions in this blog post.

挽心 2024-09-15 03:04:37

我正在寻找看起来非常接近您需求的东西。但我不需要恢复关联的对象,只需记录它们即可。我正在考虑以 nosql 方式处理它。所以我可以保存模型版本,并且关联将是嵌入文档。

这样我就可以更全面地比较版本。现在我使用 paper_trail,但由于它无法处理关联,因此无法存储与模型关联的标签并查看它如何随时间变化。

I'm looking for something that appears to be very close to your needs. But I don't need to revert the associated objects, just to record them. I was thinking of handle it in a nosql way. So I can save the model version and the associations would be embedded documents.

So I can compare versions in a more comprehensive way. Right now I use paper_trail, but as it can't handle associations, it's not possible to store the tags associated to a model and see how it changes through time.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文