Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate from papertrail? #106

Closed
jemminger opened this issue Jan 17, 2019 · 3 comments
Closed

Migrate from papertrail? #106

jemminger opened this issue Jan 17, 2019 · 3 comments

Comments

@jemminger
Copy link

I currently use papertrail, and I want to delete its massively verbose table, but I don't want to lose the history.

Is there a way I can migrate my papertrail versions over to logidze?

@palkan
Copy link
Owner

palkan commented Jan 17, 2019

We don't have an out-of-the-box support for that.

The only complex part here is to convert papertrail history to Logdize format.

And then you can just do record.update_column(:log_data, converted_log).

@seanlinsley
Copy link

seanlinsley commented May 16, 2019

BTW, PaperTrail now supports dropping the object column, which reduces the table size by about half. Here's a migration you can use: paper-trail-gem/paper_trail#1099 (comment)

I considered Logidze as an alternative but the fact that all history is lost when a record is deleted (#61) isn't acceptable for long-lived Rails projects. For a greenfield project it's probably simple enough to disallow deletions.

@bf4
Copy link
Contributor

bf4 commented Oct 19, 2020

Also noting deletion issue #61 (comment)

@palkan palkan closed this as completed Feb 2, 2021
Repository owner locked and limited conversation to collaborators Feb 2, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

4 participants