search for: sr999999

Displaying 1 result from an estimated 1 matches for "sr999999".

Did you mean: 3.999999
2007 Sep 18
2
Auto-incrementing column
Ok, I have an table column that needs to auto-increment, but isn''t the primary key (although I guess it could be). The format for the column is "SR001234" and it needs to autoincrement like so: SR001234 SR001235 SR001236 ... SR999999 How can I do this? I know Ruby has some pretty nice constructs for doing things like this, but I just don''t quite see how to put them into Rails yet. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Rub...