简体   繁体   English

跟踪heroku数据库的变化

[英]track heroku database changes

My rails app is up and running. 我的rails应用已启动并正在运行。 It's crowdsourced so users can make changes to the database. 它是众包的,因此用户可以对数据库进行更改。 I'd like to be able to see myself what has been deleted or added. 我希望能够看到自己删除或添加的内容。 Is there a way to view and track changes made to the database by others? 有没有办法查看和跟踪其他人对数据库所做的更改?

You can use a gem like Paper Trail https://github.com/airblade/paper_trail to create a log of database updates. 您可以使用像Paper Trail https://github.com/airblade/paper_trail这样的宝石来创建数据库更新日志。 It can log all updates to the database for your future review. 它可以记录数据库的所有更新,以供将来审核。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM