[Nitro] How do I use create_constraints

Bryan Soto bryan.a.soto at gmail.com
Mon Apr 3 16:58:00 EDT 2006

On 4/3/06, Reid Thompson <reid.thompson at ateb.com> wrote:
> Provided I have an Og managed class:
> class Dbfile
>   property :filename, String
>   belongs_to  :dbdir, Dbdirectory
> end
> How do I use create_constraints to create a unique constraint for
> (filename, dbdir)?

I think that if you use the postgres store that they are created
automatically. I don't believe the other stores do, though I suppose
Mysql could now.

"Never tell people how to do things. Tell them what to do and they
will surprise you with their ingenuity." —General George S. Patton

More information about the Nitro-general mailing list