I've added the Papertrail gem to my app after approx 1000 records have already been created.

Does anyone know how to populate the versions table with the current versions of my data?

Without doing this it seems only the second change for each will allow me to properly make comparisions / flag what has changed via diffing etc.

Many thanks!

有帮助吗?

解决方案

A quick and dirty method would be to just create a loop that updates a single field, like adding a space to string field or something harmless.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top