Store it as an integer, this will surely help you once you need to query it.
- Maurício Linhares http://alinhavado.wordpress.com/ (pt-br) | http://blog.codevader.com/ (en) On Fri, Feb 20, 2009 at 8:02 PM, Scott Holland <rails-mailing-l...@andreas-s.net> wrote: > > Hey, > > This may be a simple question, but I just wanted to make sure I was > doing it right. > > I need to store just the year in my database - i.e. vacation entitlement > year = 2008 > > Should I store it using 'date' and leave the month and day as '0' > > 2008-00-00 > > or should i store it as an integer? > > Many Thanks > -- > 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---