How to create a full Audit log in Rails for every table?

后端 未结 4 1287
星月不相逢
星月不相逢 2020-12-13 00:57

We recently began a compliance push at our company and are required to keep a full history of changes to our data which is currently managed in a Rails application. We\'ve

4条回答
  •  旧巷少年郎
    2020-12-13 01:24

    You could also use something like acts_as_versioned http://github.com/technoweenie/acts_as_versioned
    It versions your table records and creates a copy every time something changes (like in a wiki for instance)
    This would be easier to audit (show diffs in an interface etc) than a log file

提交回复
热议问题