Generating unique invoice numbers in Ruby on Rails | Hacker News Reader