ncbo / goo

Graph Oriented Objects (GOO) for Ruby. A RDF/SPARQL based ORM.
http://ncbo.github.io/goo/
Other
15 stars 6 forks source link

unique attributes that are not used for naming #71

Open msalvadores opened 11 years ago

msalvadores commented 11 years ago

We should be able to have unique attributes that are not used to generate the IDs. Maybe we need to change :unique's behaviour.

attribute :acronym , :unique => :use_for_id
attribute :name, :unique => true