Exception: ActiveRecord::AttributeMethods::Serialization::ColumnNotSerializableError
- Inherits:
-
StandardError
- Object
- StandardError
- ActiveRecord::AttributeMethods::Serialization::ColumnNotSerializableError
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/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/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/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 |