Exception: ActiveRecord::AttributeMethods::Serialization::ColumnNotSerializableError
- Inherits:
-
StandardError
- Object
- StandardError
- ActiveRecord::AttributeMethods::Serialization::ColumnNotSerializableError
- Defined in:
- lib/active_record/attribute_methods/serialization.rb
Instance Method Summary collapse
-
#initialize(name, type) ⇒ ColumnNotSerializableError
constructor
A new instance of ColumnNotSerializableError.
Constructor Details
#initialize(name, type) ⇒ ColumnNotSerializableError
Returns a new instance of ColumnNotSerializableError.
9 10 11 12 13 14 15 |
# File 'lib/active_record/attribute_methods/serialization.rb', line 9 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 |