Class: ActiveRecord::ConnectionAdapters::PostgreSQL::OID::String

Inherits:
Identity
  • Object
show all
Defined in:
lib/arjdbc/postgresql/base/oid.rb,
lib/arjdbc/postgresql/base/oid.rb

Overview

String, Text types do not exist in AR 4.0/4.1 AR reports Identity for them - make it similar

Direct Known Subclasses

SpecializedString, Text

Instance Method Summary collapse

Methods inherited from Type

#infinity, #simplified_type

Instance Method Details

#typeObject



25
# File 'lib/arjdbc/postgresql/base/oid.rb', line 25

def type; :string end

#type_cast(value) ⇒ Object



27
28
29
30
31
# File 'lib/arjdbc/postgresql/base/oid.rb', line 27

def type_cast(value)
  return if value.nil?

  value.to_s
end