A little over four years ago, a feature was added to allow users
to change the name of the `versions.created_at` column. No reason
was given at the time.
https://github.com/airblade/paper_trail/pull/129
There are three reasons why this should not be configurable:
1. The standard column name in rails is `created_at`.
2. The majority of the `versions` table is, and should be, an
implementation detail of PT.
3. This configuration option added moderate complexity to the
library, and severe complexity to the test suite.
Rails 4.2 deprecates `serialized_attributes` without replacement. However,
it also introduces a type system which lets us treat all attributes the same.
Rails 4.2 has `type_for_attribute` which knows how to serialize and deserialize
itself from a database through `type_cast_for_database` and `type_cast_from_database`.
(In Rails 5 they will be `serialize` and `deserialize` respectively.)
Thus we no longer need the `PaperTrail.config.serialized_attributes` toggle,
and this change makes it do nothing. It's still kept around for backwardscompatibility.
- Provides helpful stack trace
- Can be silenced
- We already have a dependency on activesupport
- Available in all versions of rails we support: 3 - 5