On 7/26/07, Vsevolod Balashov <[EMAIL PROTECTED]> wrote:
>
> I`m implement "elixir-like" constraint`s definition. Look it at
> http://pylonshq.com/pasties/381
Thanks for contributing, though this is not needed anymore with the
latest versions of the autodelay branch:
you can simply do:
class Book(Entity):
has_field('title', String(80), nullable=False)
belongs_to('autor', of_kind='Autor')
using_table_options(UniqueConstraint('title', 'autor_id'))
--
Gaƫtan de Menten
http://openhex.org
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"SQLElixir" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sqlelixir?hl=en
-~----------~----~----~----~------~----~------~--~---