collectiveidea / audited

Audited (formerly acts_as_audited) is an ORM extension that logs all changes to your Rails models.
MIT License
3.34k stars 645 forks source link

Support for BigInt #705

Closed berniechiu closed 2 months ago

berniechiu commented 2 months ago

Description

Thanks for the nice gem! Due to the current demands of data, it may be beneficial to switch auditable_id and associated_id to :bigint instead of :int to accommodate larger data sizes nowadays?

However, there was an error when I simply modified the migrations installed_audited.rb. The callbacks under update is fine, but create destroy will throw an error.

Screen Shot 2024-04-22 at 3 39 28 PM
berniechiu commented 2 months ago

It's a YAML parse issue, using jsonb works good by now.