123456789_123456789_123456789_123456789_123456789_

Exception: ActiveRecord::AttributeMethods::Serialization::ColumnNotSerializableError

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, StandardError
Instance Chain:
self, StandardError
Inherits: StandardError
  • ::Object
Defined in: activerecord/lib/active_record/attribute_methods/serialization.rb

Class Method Summary

Constructor Details

.new(name, type) ⇒ ColumnNotSerializableError

[ GitHub ]

  
# File 'activerecord/lib/active_record/attribute_methods/serialization.rb', line 10

def initialize(name, type)
  super <<~EOS
    Column `#{name}` of type #{type.class} does not support `serialize` feature.
    Usually it means that you are trying to use `serialize`
    on a column that already implements serialization natively.
  EOS
end