Sha256: b44fe184a442db834e35756357d5416c089a8ec38217e9bc4494f1632f8dc39c

Contents?: true

Size: 509 Bytes

Versions: 1

Compression:

Stored size: 509 Bytes

Contents

module DmPanlex
   class Mn
      include DataMapper::Resource

      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
   end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dm_panlex-0.2.0 lib/dm_panlex/models/mn.rb