instance method
binary?
Ruby on Rails 6.0.6
Since v4.2.9Signature
binary?()
No documentation comment.
Source
# File activerecord/lib/active_record/connection_adapters/postgresql/oid/bit.rb, line 38
def binary?
/\A[01]*\Z/.match?(value)
end
Defined in activerecord/lib/active_record/connection_adapters/postgresql/oid/bit.rb line 38
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Bit::Data