lib/dm_panlex/models/mn.rb in dm_panlex-0.2.0 vs lib/dm_panlex/models/mn.rb in dm_panlex-0.2.1
- old
+ new
@@ -5,13 +5,11 @@
storage_names[:default] = 'mn'
property :mn, Integer, :key => true
property :ap, Integer, :required => true, :index => true
- belongs_to :ap, :parent_key => :ap, :child_key => :ap
-
- has n, :dfs, :parent_key => :mn, :child_key => :mn
- has n, :dms, :parent_key => :mn, :child_key => :mn
- has n, :dns, :parent_key => :mn, :child_key => :mn
- has n, :mis, :parent_key => :mn, :child_key => :mn
+ has n, :dfs, :model => 'Df', :child_key => :mn
+ has n, :dms, :model => 'Dm', :child_key => :mn
+ has n, :dns, :model => 'Dn', :child_key => :mn
+ has n, :mis, :model => 'Mi', :child_key => :mn
end
end