rails-sqlserver / activerecord-sqlserver-adapter

SQL Server Adapter For Rails
MIT License
968 stars 558 forks source link

Implement MessagePack methods on the Data class #1115

Closed aidanharan closed 8 months ago

aidanharan commented 8 months ago

Implement the MessgePack methods on the ActiveRecord::ConnectionAdapters::SQLServer::Type::Data class as it doesn't inherit from any of the other class that implement them.

Fixes test:

https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/actions/runs/6494022569/job/17636125629

Error:
ActiveRecordMessagePackTest#test_0002_roundtrips record and cached associations:
ActiveSupport::MessagePack::UnserializableObjectError: Unsupported type ActiveRecord::ConnectionAdapters::SQLServer::Type::Data for object "10-12-2023 09:49:44.575472"
    rails (319256ac4708) activesupport/lib/active_support/message_pack/extensions.rb:233:in `raise_unserializable'