Sha256: 4a7298c764ff0cf56b904bfcfba7087ff24da8c9b9a5fb8fcaba7ccf9d0cf8c2

Contents?: true

Size: 583 Bytes

Versions: 1

Compression:

Stored size: 583 Bytes

Contents

module DmPanlex
   class Dn
      include DataMapper::Resource

      storage_names[:default] = 'dn'

      property :dn, Integer, :key => true
      property :mn, Integer, :required => true, :unique_index => :dm_mn_ex_key, :index => true
      property :ex, Integer, :required => true, :unique_index => :dm_mn_ex_key, :index => true

      belongs_to :ex, :parent_key => :ex, :child_key  => :ex
      belongs_to :mn, :parent_key => :mn, :child_key  => :mn

      has n, :mds, :parent_key => :dn, :child_key => :dn
      has n, :wcs, :parent_key => :dn, :child_key => :dn
   end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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