https://github.com/jim/scribe
ActiveRecord plugin to provide model attribute diffs and change tracking
https://github.com/jim/scribe
Last synced: about 1 year ago
JSON representation
ActiveRecord plugin to provide model attribute diffs and change tracking
- Host: GitHub
- URL: https://github.com/jim/scribe
- Owner: jim
- License: mit
- Created: 2008-11-22T21:58:07.000Z (over 17 years ago)
- Default Branch: master
- Last Pushed: 2009-07-27T20:32:45.000Z (almost 17 years ago)
- Last Synced: 2025-03-24T12:19:37.829Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 94.7 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: MIT-LICENSE
Awesome Lists containing this project
README
Scribe
======
Introduction goes here.
Database Requirements
======
You'll need a migration to create a table to store changes in:
create_table :changes, :force => true do |t|
t.integer :model_id
t.string :model_type, :limit => 20
t.text :diff
t.datetime :created_at
end
add_index :changes, [ :model_id, :model_type ]
You may want to add other indexes depending on your application.
Example
=======
Example goes here.
Copyright (c) 2008 James Benton, released under the MIT license