I found the solution by "try and error"!
I have to add the :child_key argument also in the "has n" line:

class Appl
  include DataMapper::Resource
  property  :id,    String, :key => true
  has n, :tables, :child_key => [:app]
end # Appl
class Table
  include DataMapper::Resource
  property  :app,   String, :key => true, :index => true
  property  :id,     String, :key => true
  belongs_to  :appl, :child_key => [:app]
end # Table

then the "unwanted" index is not generated
Kittekat

-- 
You received this message because you are subscribed to the Google Groups 
"DataMapper" 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/datamapper?hl=en.

Reply via email to