Using rails 3.0.3, I migrated the decimal column on my base using the following migration:
change_table :products do |t| t.change :price, :decimal, :precision => 10, :scale => 2
Migration works fine, but I can still save the value, for example 4.64564, where it should only store 4.65
Also, apart from the migration file I created, schema.rb does not contain scale / precision information.
Why do rails accept precision / scale transfers to ignore it?
source share