Migrations now support decimal columns too, with the addition of two new attributes, precision and scale.
add_column :orders, :price, :decimal, :precision => 8, :scale => 2
I just spent a day reworking all the Depot chapters to use this, and it seems to work great. (And, no, the updated PDF isn’t released yet. I’m also half-way thought the ActiveRecord chapter rewrite, and need to get that finished before the next release.)
I’d be interested to hear from folks currently using BigDecimal for financial calculations. Is there a preferred rounding mode? Any gotchas?
In the meantime, thanks core team.