class ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Bit

def type_cast(value)

def type_cast(value)
  if String === value
    ConnectionAdapters::PostgreSQLColumn.string_to_bit value
  else
    value
  end
end