lib/dm_panlex/models/lv.rb in dm_panlex-0.2.0 vs lib/dm_panlex/models/lv.rb in dm_panlex-0.2.1

- old
+ new

@@ -9,14 +9,12 @@ property :vc, Integer, :min => -32768, :max => 32767, :required => true, :unique_index => :lv_lc_key property :sy, Boolean, :required => true, :default => true property :am, Boolean, :required => true, :default => true property :tt, Text, :required => true - belongs_to :lc, :parent_key => :lc, :child_key => :lc - - has n, :avs, :parent_key => :lv, :child_key => :lv, :constraint => :destroy - has n, :cps, :parent_key => :lv, :child_key => :lv - has n, :cus, :parent_key => :lv, :child_key => :lv - has n, :dfs, :parent_key => :lv, :child_key => :lv - has n, :exs, :parent_key => :lv, :child_key => :lv + has n, :avs, :model => 'Av', :child_key => :lv, :constraint => :destroy + has n, :cps, :model => 'Cp', :child_key => :lv + has n, :cus, :model => 'Cu', :child_key => :lv + has n, :dfs, :model => 'Df', :child_key => :lv + has n, :exs, :model => 'Ex', :child_key => :lv end end