Tweak README about differences between Rails 3 and 2.3
This commit is contained in:
parent
a535ed4f22
commit
2defd7cf56
16
README.md
16
README.md
|
@ -26,7 +26,7 @@ PaperTrail lets you track changes to your models' data. It's good for auditing
|
|||
|
||||
## Rails Version
|
||||
|
||||
Works on Rails 3 and Rails 2.3. The Rails 3 code is on the master branch and tagged v2.x. The Rails 2.3 code is on the Rails 2 branch and tagged 1.x.
|
||||
Works on Rails 3 and Rails 2.3. The Rails 3 code is on the `master` branch and tagged `v2.x`. The Rails 2.3 code is on the `rails2` branch and tagged `v1.x`.
|
||||
|
||||
|
||||
## API Summary
|
||||
|
@ -504,19 +504,7 @@ Over time your `versions` table will grow to an unwieldy size. Because each ver
|
|||
|
||||
### Rails 2
|
||||
|
||||
1. Install PaperTrail as a gem via your `config/environment.rb`:
|
||||
|
||||
`config.gem 'paper_trail', :version => '~> 1'`
|
||||
|
||||
2. Generate a migration which will add a `versions` table to your database.
|
||||
|
||||
`script/generate paper_trail`
|
||||
|
||||
3. Run the migration.
|
||||
|
||||
`rake db:migrate`
|
||||
|
||||
4. Add `has_paper_trail` to the models you want to track.
|
||||
Please see the `rails2` branch.
|
||||
|
||||
|
||||
## Testing
|
||||
|
|
Loading…
Reference in New Issue