Rookie question, I know, but I googled around and couldn''t find a quick answer ... How do I get the next value in a sequence? I''ve noticed Rails'' migrations use a single-row entry table to store the current version (SchemaInfo I think it''s called). Now, I know I can simulate this by having a single-column table containing just the ID [ by deleting all rows in the table, then creating a new one and getting it''s ID, but this seems horribly laborious and very un-rails like). But is there a convention for doing this? Some sort of nice little single-line I can stick in the model or something? --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---