I have a product column like so:
t.decimal :price, :precision => 12, :scale => 2
and it keeps returning 500.0 instead of the expected two decimal 500.00. Then I tried manually changing the product price via the console and it'll only save 1 decimal place.
>product.price = 500.00
=> 500.0
>product.price
=> #<BigDecimal:7ff479c6ba40,'0.5E3',9(36)>
How do I get the decimal column to save and return two decimal places?