Getting model from ActiveRecord::ConnectionAdapters::MySQL::Column

Hi,

In Rails 6.1.3.1 setting model= is frozen on the ActiveRecord::ConnectionAdapters::MySQL::Column instance. I’m upgrading a gem that sets the model on the column. Is there a workaround for this? Or is the model accessible through another method?

*** FrozenError Exception: can't modify frozen ActiveRecord::ConnectionAdapters::MySQL::Column