James Byrne
2006-Sep-14 15:53 UTC
adding sequences to postgresql DBMS via migration generator
Can somebody provide me with a code example of how to tell a migration to add a sequence other than the default? I have been floundering around with the books and online resources but cannot find a clear example. I anticipate that some sort of option hash is invloved but I cannot determin the correct syntax. I imagine that it would go something like this: ... t.column :my_sequence_name :sequence => ''my_sequence_name'' ???? ... Is this supposed to work? What other options are there if it does? Many thanks. Jim -- Posted via http://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-/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 -~----------~----~----~----~------~----~------~--~---
James Byrne
2006-Sep-14 15:54 UTC
Re: adding sequences to postgresql DBMS via migration genera
Note: I want to add and additional sequence, not rename the default. Regards, Jim -- Posted via http://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-/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 -~----------~----~----~----~------~----~------~--~---