Skip to content
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

Data too long for column 'audited_changes' #674

Open
akostadinov opened this issue May 8, 2023 · 0 comments
Open

Data too long for column 'audited_changes' #674

akostadinov opened this issue May 8, 2023 · 0 comments

Comments

@akostadinov
Copy link
Contributor

Hello, trying to audit very long columns results in

ActiveRecord::ValueTooLong: Mysql2::Error: Data too long for column 'audited_changes' at row 1

I understand that one option is to increase audited column size. But it is unpractical for us, also there can always be other audited columns with a potentially very long text that exceeds audited column size. Because during audit old and new values are both stored in the audited column.

So is it somehow possible to specify truncation limits or maybe add ability to add a proc pre-processor that could include custom logic depending on the project and the use case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant