RailsAdminHistoryRemark

Add remark field to versions table.

Installation

To enable rails_admin_history_remark, add the following to your Gemfile ensuring it is added after rails_admin:

gem 'rails_admin'
gem 'rails_admin_history_remark'

It should go without saying that this plugin also requires the paper_trail gem.

E.g. gem 'paper_trail'

Configuration

Enable paper_trail on your model

$ rails generate paper_trail:install --with-changes

In the rails_admin.rb initializer, uncomment the following lines to enable auditing:

history_index
history_show

For activerecord, generate migration:

$ rails generate rails_admin_history_remark:migration

Then migrate:

$ rails db:migrate

Notes

Inspired by rails_admin_history_rollback

Unfortunately it's not compatible yet to run it side by side.

License

The gem is available as open source under the terms of the MIT License.