You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After initial gem setup with t.json :metadata, default: {} field I've got this error:
ActiveRecord::AttributeMethods::Serialization::ColumnNotSerializableError: Column `metadata` of type ActiveRecord::Type::Json does not support `serialize` feature.
Usually it means that you are trying to use `serialize`
on a column that already implements serialization natively.
from /home/gleb/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/attribute_methods/serialization.rb:74:in `block in serialize'
Environment:
Ruby 2.7.0
Rails 6.0.2.1
Postgres 11
The text was updated successfully, but these errors were encountered:
After initial gem setup with
t.json :metadata, default: {}
field I've got this error:Environment:
Ruby 2.7.0
Rails 6.0.2.1
Postgres 11
The text was updated successfully, but these errors were encountered: