I am working through a rails tutorial, and came across this line rails g model product name decimal:{7, 2}
.
What do those curly braces at the end mean? What do they do?
Originally, I thought they force a level of precision with floating point numbers, but that proved to be false. I could make a decimal 10 digits long with a decimal going to the thousandths place.