Files

Class/Module Index [+]

Quicksearch

ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Timestamp

Public Instance Methods

simplified_type(sql_type) click to toggle source
# File lib/arjdbc/postgresql/base/oid.rb, line 224
def simplified_type(sql_type)
  :datetime
end
type() click to toggle source
# File lib/arjdbc/postgresql/base/oid.rb, line 223
def type; :timestamp; end
type_cast(value) click to toggle source
# File lib/arjdbc/postgresql/base/oid.rb, line 228
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

[Validate]

Generated with the Darkfish Rdoc Generator 2.