1
0
Fork 0
mirror of https://github.com/paper-trail-gem/paper_trail.git synced 2022-11-09 11:33:19 -05:00
Commit graph

24 commits

Author SHA1 Message Date
Jared Beck
1d42d0d0ab Extract gem: paper_trail-association_tracking
See README and CHANGELOG for rationale.
2018-06-04 14:53:14 -04:00
Jose Galisteo
bbe6743263 Add migration version 2017-05-04 11:01:36 +02:00
Jared Beck
ddde7857c5 Generate cleaner migrations 2017-04-10 11:35:18 -04:00
Jared Beck
f92cfbc23d Inherit from the new versioned migration class
e.g. `ActiveRecord::Migration[5.1]`

Fixes #949

Following the example of the devise gem, use erb. In addition, add
the `.erb` file extension to fix syntax highlighting in editor.

Deletes create_versions_spec.rb because the file is no longer valid
ruby so those tests will have to be re-written. We can either
generate a valid ruby file and continue to use similar assertions,
or we can convert those features to use erb, which will have the
benefit of cleaner generated files.
2017-04-10 11:10:15 -04:00
Jared Beck
c9161129c3 Lint: Set TargetRubyVersion to 2.1 2017-03-31 21:45:06 -04:00
Jared Beck
445c93f317 Fix MySQL 5.6 bug re: item_type length
[Fixes #651]
2016-05-26 14:23:55 -04:00
Jared Beck
a0e3f43ad1 Docs: Describe all modules 2016-04-09 01:08:34 -04:00
Paul Padier
3f9289d141 Fix Style/MutableConstant offenses 2016-04-01 11:31:02 -04:00
Jared Beck
0435936a37 Set MySQL collation: versions tbl: utf8mb4_general_ci
Should fix the "Unknown collation: 'utf8mb4_col'" error from
https://github.com/airblade/paper_trail/issues/741
2016-03-31 16:24:11 -04:00
Jared Beck
8980f08d0e Fix Style/StringLiterals: Use double quotes 2016-03-05 17:07:32 -05:00
Jared Beck
10941c8459 Fix Style/HashSyntax 2016-02-15 22:32:40 -05:00
Jared Beck
ae6358d93c Fix Style/ExtraSpacing 2016-02-15 22:28:21 -05:00
Jared Beck
74dcacf520 Fix Style/EmptyLinesAroundClassBody 2016-02-15 22:23:05 -05:00
Jared Beck
d138b955af MySQL: Specify utf8mb4 charset for versions table
Fixes #651
2015-12-27 17:59:20 -05:00
Jared Beck
3a72b7f7c7 Code style: Break long lines 2015-12-13 00:01:40 -05:00
Jared Beck
1d120ab9e4 Docs: Add warnings about time precision in MySQL
[ci skip]
2015-10-31 21:17:05 -04:00
Jared Beck
4ba85e2548 In MySQL, use longtext instead of text
[Fixes #248]

- MySQL uses limit to choose between `text`, `mediumtext`, and `longtext`.
- Postgres ignores any limit up to 1GB - 1 byte.  Greater limits cause an error.
- SQLite uses the limit literally
2015-06-22 18:33:52 -04:00
Ben Li
aba6ef5241 fix migration code 2014-11-04 12:48:10 +11:00
lyfeyaj
2e688a8794 merge airblade/paper_trail branch Master into master and fix conflicts 2014-03-14 08:45:43 +08:00
Ben Atkins
ed2e3d55e4 Remove word 'column' from migration to add 'object_changes' column to follow Rails convention 2014-03-07 16:28:04 -05:00
Ben Atkins
8cd1426b01 Add generator spec for InstallGenerator; Use 'change' method for migrations 2014-03-07 16:12:27 -05:00
lyfeyaj
78292e0fb0 add has many associations functionality 2014-02-25 22:02:36 +08:00
Edward Tsech
9cf1186f0d Added optional migration for changes 2011-07-13 10:19:47 +07:00
conickal
3954767072 Add generator compatible with Rails 3. 2010-10-11 17:51:10 +01:00