Search code examples
ruby-on-railsruby-on-rails-4rubygemspaper-trail-gem

How to skip versioning using Paper Trail on a model using has_paper_trail?


I have to update a table with missing data from an importation. And I don't want paper trail to version this update. How can I skip the versioning for this one time execution without removing has_paper_trail from my model?


Solution

  • I have found the answer:

    Model.paper_trail_off!