lib/dm_panlex/models/ex.rb in dm_panlex-0.2.0 vs lib/dm_panlex/models/ex.rb in dm_panlex-0.2.1
- old
+ new
@@ -7,11 +7,9 @@
property :ex, Integer, :key => true
property :lv, Integer, :required => true, :unique_index => :ex_lv_tt_key, :index => true
property :tt, Text, :required => true, :unique_index => :ex_lv_tt_key, :index => true
property :td, Text, :required => true, :index => true
- belongs_to :lv, :parent_key => :lv, :child_key => :lv
-
- has n, :dms, :parent_key => :ex, :child_key => :ex
- has n, :dns, :parent_key => :ex, :child_key => :ex
+ has n, :dms, :model => 'Dm', :child_key => :ex
+ has n, :dns, :model => 'Dn', :child_key => :ex
end
end