ActiveModel numericality validator :only_integer should allow integer BigDecimal values. Some ORMs (e.g. Mongoid) can only accept 8-byte Integers, and use BigDecimal type for higher magnitude.