I am using Ruby 2.2.4 and PostgreSQL. I have created migration:
add_column :plans, :price, :decimal, precision: 7, scale: 2
When I am going to create new record, it will save value in price column with only one precision.
Why it happens? I want value with 2 precisions.
Ex:
Current value which is save: 20.0
I want: 20.00