Skip to content

Commit

Permalink
close #317; close #314; Travis can now test against MySQL properly
Browse files Browse the repository at this point in the history
  • Loading branch information
batter committed May 9, 2014
1 parent 8ae62c8 commit 7a5fe33
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 0 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ env:
- DB=postgres
- DB=sqlite

before_install:
- gem update --system 2.2.1

before_script:
- sh -c "if [ \"$DB\" = 'mysql' ]; then mysql -e 'create database paper_trail_test;'; fi"
- sh -c "if [ \"$DB\" = 'mysql' ]; then mysql -e 'create database paper_trail_bar; '; fi"
Expand All @@ -32,5 +29,4 @@ matrix:
gemfile: Gemfile
- rvm: 1.8.7
gemfile: Gemfile
- env: DB=mysql

4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,16 @@
`PaperTrail::Rails::Controller` should hook into all controller types, and should not get loaded unless `ActionController` is.
- [#346](https://github.com/airblade/paper_trail/pull/346) - `user_for_paper_trail` method should accommodate different types
for return values from `current_user` method.
- [#344](https://github.com/airblade/paper_trail/pull/344) - Gem is now tested against `MySQL` and `PostgreSQL` in addition to `SQLite`.
- [#317](https://github.com/airblade/paper_trail/issues/317) / [#314](https://github.com/airblade/paper_trail/issues/314) -
`versions` should default to ordering via the primary key if it is an integer to avoid timestamp comparison issues.
- `PaperTrail::Cleaner.clean_versions!` should group versions by `PaperTrail.timestamp_field` when deciding which ones to
keep / destroy, instead of always grouping by the `created_at` field.
- If a `Version` instance is reified and then persisted at that state, it's source version
(`model_instance#version_association_name`, usually `model_instance#version`) will get cleared since persisting it causes it to
become the live instance.
- If `destroy` actions are tracked for a versioned model, invoking `destroy` on the model will cause the corresponding version that
gets generated to be assigned as the source version (`model_instance#version_association_name`, usually `model_instance#version`).
- Gem is now tested against `MySQL` and `PostgreSQL` in addition to `SQLite`.

## 3.0.1

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1046,6 +1046,7 @@ Please use GitHub's [issue tracker](http://github.com/airblade/paper_trail/issue

Many thanks to:

* [Russell Osborne](https://github.com/rposborne)
* [Zachery Hostens](http://github.com/zacheryph)
* [Jeremy Weiskotten](http://github.com/jeremyw)
* [Phan Le](http://github.com/revo)
Expand Down

0 comments on commit 7a5fe33

Please sign in to comment.