How Should I use percent values in my database for a Rails app? -


i new ruby on rails, , looking way include decimals in database. example, if wanted take total score , and multiply rate new score. use rails g model student name:string,score:integer,rate:decimal ?

yes - can use generate model. but, explain in more detail trying do? first statement "was looking way include decimals in database." - seems orthogonal "would use..." question.


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Socket.connect doesn't throw exception in Android -

SPSS keyboard combination alters encoding -