Skip to Content Skip to Search

class ActiveRecord::Type::BigInteger

Active Model BigInteger Type

Attribute type for integers that can be serialized to an unlimited number of bytes. This type is registered under the :big_integer key.

class Person
  include ActiveModel::Attributes

  attribute :id, :big_integer

person = = "18_000_000_000" # => 18000000000

All casting and serialization are performed in the same way as the standard ActiveModel::Type::Integer type.

Inherits From

Definition files