class ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Timestamp

Public Instance Methods

type() click to toggle source
# File lib/active_record/connection_adapters/postgresql/oid.rb, line 182
def type; :timestamp; end
type_cast(value) click to toggle source
# File lib/active_record/connection_adapters/postgresql/oid.rb, line 184
def type_cast(value)
  return if value.nil?

  # FIXME: probably we can improve this since we know it is PG
  # specific
  ConnectionAdapters::PostgreSQLColumn.string_to_time value
end