Project

log_table

0.0
No commit activity in last 3 years
No release in over 3 years
log_table creates a log table for the given Active Record model and triggers to write into it.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.10
~> 1.4
~> 5.8
~> 10.0
~> 1.3

Runtime

~> 0.2.17
 Project Readme

LogTable

The LogTable gem will read your Active Record model and generate a table to store logs to. It will additionally create triggers which will do the actual saving into the log table.

Installation

Add this line to your application's Gemfile:

gem 'log_table'

And then execute:

$ bundle

Or install it yourself as:

$ gem install log_table

Usage

After installing the gem, you will need to run the below two Rake tasks

$ bundle exec rake db:generate_log_table_migration MODEL=MODEL1,MODEL2,...
$ bundle exec rake db:generate_log_trigger_migration MODEL=MODEL1,MODEL2,...

The first will generate a migration which will generate the log tables and the second will generate a migration for the triggers.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/diskshima/log_table. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

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