Well actualy it depends a lot on what you wanna do with this year data...could you precise a little what is your goal?
On 20 feb, 17:02, 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 viahttp://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 -~----------~----~----~----~------~----~------~--~---