Jul 21, 2017 · 1 min read
Thanks for the great write-up, Valentino! I did notice one problem with the following line of code:
rails generate model Product name:text price:decimal{15,2}
It looks like Rails gets confused with the syntax of price:decimal{15,2} and ends up generating two fields with type decimal15 and decimal2. To get around it I was able to wrap it in quotes like this:
rails generate model Product ‘name:text’ ‘price:decimal{15,2}’
Other than that, everything else worked like a charm. Thanks again!
-Sean
