rails-sqlserver / activerecord-sqlserver-adapter

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

Loaded replies before marshalling dump #1116

Closed aidanharan closed 8 months ago

aidanharan commented 8 months ago

Fixed the association dumps so that the replies were loaded before marshaling. Used following code to create the dumps:

ActiveRecord::Marshalling.format_version = 6.1
topic = Topic.find(1)
topic.replies.load
File.binwrite(marshal_fixture_path("rails_6_1_topic_associations"), Marshal.dump(topic))

ActiveRecord::Marshalling.format_version = 7.1
topic = Topic.find(1)
topic.replies.load
File.binwrite(marshal_fixture_path("rails_7_1_topic_associations"), Marshal.dump(topic))

Fixes tests: