lib/dm_panlex/models/dn.rb in dm_panlex-0.2.0 vs lib/dm_panlex/models/dn.rb in dm_panlex-0.2.1
- old
+ new
@@ -6,12 +6,9 @@
property :dn, Integer, :key => true
property :mn, Integer, :required => true, :unique_index => :dm_mn_ex_key, :index => true
property :ex, Integer, :required => true, :unique_index => :dm_mn_ex_key, :index => true
- belongs_to :ex, :parent_key => :ex, :child_key => :ex
- belongs_to :mn, :parent_key => :mn, :child_key => :mn
-
- has n, :mds, :parent_key => :dn, :child_key => :dn
- has n, :wcs, :parent_key => :dn, :child_key => :dn
+ has n, :mds, :model => 'Md', :child_key => :dn
+ has n, :wcs, :model => 'Wc', :child_key => :dn
end
end