edge badge
Methods
S
T
Instance Public methods
simplified_type(sql_type)
# File activerecord/lib/active_record/connection_adapters/postgresql/oid.rb, line 211
def simplified_type(sql_type)
  case sql_type
  when /^timestamp with(?:out)? time zone$/
    :datetime
  else
    :timestamp
  end
end
type()
# File activerecord/lib/active_record/connection_adapters/postgresql/oid.rb, line 210
def type; :timestamp; end
type_cast(value)
# File activerecord/lib/active_record/connection_adapters/postgresql/oid.rb, line 220
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