create_table :foo do |t|
...
t.sequence :seq
...
end
Is there a clean way of doing this in migrations or will I end up
having to hack something. Like having an integer field and copying in
the id in an after_create filter?
On 13 July 2011 15:10, Tim Shaffer <timsh...@me.com> wrote:
> What database are you using? I'm not aware of a "sequence" data type.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rubyonrails-talk/-/qARmDs2QsEEJ.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-ta...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/xm6ubJwDWqoJ.
Walter
> To post to this group, send email to rubyonrails-
> ta...@googlegroups.com.