[Nitro] [PATCH] psql sequence patch

George Moschovitis george.moschovitis at gmail.com
Sat Dec 30 04:04:44 EST 2006


thanks!

-g.

On 12/30/06, Jonathan Buch <john at oxyliquit.de> wrote:
>
> Hi,
>
> thanks go to berkus making me work on this:
>
> Sat Dec 30 00:25:29 CET 2006  Jonathan Buch <john at oxyliquit.de>
>    * don't override sequence in psql adapter
>
> Usage:
>
> class Foo
>    attr_accessor :oid, Fixnum, :sequence => 'some_custom_seq', :sql =>
> 'primary key'
> end
>
> class Bar < Foo
> end
>
> This will help in the case where you don't want STI but still uniform
> oids.
>
> Jo
>
> --
> Feel the love
> http://pinkjuice.com/pics/ruby.png
>
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general
>
>
>


-- 
http://blog.gmosx.com
http://cull.gr
http://www.joy.gr
http://nitroproject.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/nitro-general/attachments/20061230/253d03b6/attachment.html 


More information about the Nitro-general mailing list