class ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Bit::Data

def binary?

def binary?
  /\A[01]*\Z/.match?(value)
end