[Rails] What is the best column time to store amount of hours
For example, if I want to store the amount of hours a service takes to
complete such as...
1 hour of consulting
2 hours of consulting
3 hours of consulting
1 hour swedish massage
1.5 hours swedish massage
If it was all whole hours I could just use integer, but note I also need
it for half hours.
TABLE: services
name:string
duration: ???
I tried using time, but since my development database is sqlite3, the
datatype it uses it's datetime and stores the current date.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home