5.0.2: Attribute change data type after save and change back on reload.
I'm using PostgreSQL time data types. One column is an array. Both fields have the same issue.
My problem is that an attribute changes data type after the object is saved. From Time before being saved to ActiveRecord::Type::Time::Value after save. Reloading the object gives Time again.
Prior to Rails 5.0.2 the data type was changed on a standard column, but not on the time array column. It's good that it is consistent, but shouldn't the attribute return the same data type at all times?
g = GoodTime.new(one_time:"10:00", many_times:["15:30", "17:45"])