Forum: Ruby on Rails Field types of a rails model

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
8a00145d61d84b58c4688cdc50bac48f?d=identicon&s=25 Wiebe Cazemier (halfgaar)
on 2007-06-06 15:36
(Received via mailing list)

I don't understand something about the types of the fields/attributes
of rails models.

In one of my models, InvestmentAdmittanceTransaction, I have a field
called client_new_participations. It's a numeric value (I validate it
with validates_numericality_of, and it's a numeric value in
postgresql). In the validate method of the model, the attribute is a

In another model, InvestmentProcurementTransaction, I have a field
called fund_cash_payment. It's identical to the above one in type,
i.e. a numeric. But, when using it in the validate method, it's a

Why are those fields different types in each model, even though the
situation is exactly the same?
This topic is locked and can not be replied to.