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

Inherits:
StandardError
  • Object
show all
Defined in:
lib/active_record/attribute_methods/serialization.rb

Instance Method Summary collapse

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.strip_heredoc
    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