I had tried to my best. Since there were no option to specify the
additional parameters. It has to be manually specified in the
migration file.
Revert back me if u find any solution to it.
and then open the generated migrate file and add precision and
scale :
t.decimal :amount, :precision => 10, :scale => 2
then an amount column of type decimal(10,2) is created in my MySQL db.
Is it not possible to describe the precision and scale in the scaffold
command ?
Thanks
I tried to my best. Since there are no option to specify it, the only
way to do it by manually editing in the migration file.
Revert back me if u find any more solution.