1
0
Fork 0
mirror of https://github.com/paper-trail-gem/paper_trail.git synced 2022-11-09 11:33:19 -05:00
paper-trail-gem--paper_trail/spec/dummy_app
Hubert Pompecki 4cce9b0179 Serializing postgres arrays (#1018)
This PR addresses #1015

Starting from Rails version 5.0.2 the default serializer of PostgreSQL columns returns an ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Array object instead of a string. This new object is not suitable for JSON encoding and breaks versioning of any array fields backed by Postgres.

Whenever a PostgreSQL array is used, instead of asking Active Record for a serializer we introduce our own, which simply returns the underlying array without any modifications.
2017-12-08 11:44:40 -05:00
..
app Serializing postgres arrays (#1018) 2017-12-08 11:44:40 -05:00
config Drop support for rails 4.0 and 4.1 2017-09-20 05:26:13 -04:00
db Serializing postgres arrays (#1018) 2017-12-08 11:44:40 -05:00
config.ru Finish the conversion to RSpec 2017-06-10 01:45:46 -04:00
Rakefile Finish the conversion to RSpec 2017-06-10 01:45:46 -04:00