Class: ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Enum
- Inherits:
-
Type::Value
- Object
- Type::Value
- ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Enum
- Defined in:
- lib/active_record/connection_adapters/postgresql/oid/enum.rb
Overview
:nodoc:
Instance Attribute Summary
Attributes inherited from Type::Value
Instance Method Summary collapse
Methods inherited from Type::Value
#==, #binary?, #changed?, #changed_in_place?, #initialize, #klass, #number?, #type_cast_for_database, #type_cast_for_schema, #type_cast_from_database, #type_cast_from_user
Constructor Details
This class inherits a constructor from ActiveRecord::Type::Value
Instance Method Details
#type ⇒ Object
6 7 8 |
# File 'lib/active_record/connection_adapters/postgresql/oid/enum.rb', line 6 def type :enum end |
#type_cast(value) ⇒ Object
10 11 12 |
# File 'lib/active_record/connection_adapters/postgresql/oid/enum.rb', line 10 def type_cast(value) value.to_s end |