Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow :unique flag to be passed to index method #143

Closed
pehrlich opened this issue Jan 24, 2012 · 2 comments
Closed

Allow :unique flag to be passed to index method #143

pehrlich opened this issue Jan 24, 2012 · 2 comments
Labels

Comments

@pehrlich
Copy link
Contributor

index :title, :type => :fulltext, :unique => true
# in imitation of mongoid: http://mongoid.org/docs/indexing.html
# index :ssn, unique: true
@andreasronge
Copy link
Member

andreasronge added a commit to neo4jrb/neo4j-core that referenced this issue Apr 24, 2012
…4j::Core::Index::UniqueFactory

Renamed java_entity to _java_entity
See issue neo4jrb/activegraph#143
andreasronge added a commit to andreasronge/neo4j-wrapper that referenced this issue Apr 24, 2012
@andreasronge
Copy link
Member

Hi

No I don't think so.

On Thu, Apr 4, 2013 at 10:47 PM, Alex notifications@github.com wrote:

Is it possible to create compound unique indexes?

Something like:

property :uid, :index => :exact, :unique => [:uid, :provider]property :provider, :index => :exact

and then:MyNode.get_or_create(:uid =>'123456789', :provider => 'facebook')

Thank you.


Reply to this email directly or view it on GitHubhttps://github.com//issues/143#issuecomment-15922776
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants