Scott, Why don't you use the default created/updated_at fields and just format the output to present only the year?
Cheers, Sazima On Feb 20, 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 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 -~----------~----~----~----~------~----~------~--~---