module DmPanlex class I1 include DataMapper::Resource storage_names[:default] = 'i1' property :iso1, String, :length => 2, :key => true property :iso3, String, :length => 3, :required => true belongs_to :lc, :parent_key => :lc, :child_key => :iso3 end end