adding sequences to postgresql DBMS via migration generator

James Byrne
Thu, 14 Sep 2006 15:53:58 -0000

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
-~----------~----~----~----~------~----~------~--~---