Sha256: aa2cbdbda317c725c38f0154ba1b5908b604dc180a39da8cbe755b47e778becf

Contents?: true

Size: 439 Bytes

Versions: 1

Compression:

Stored size: 439 Bytes

Contents

module DmPanlex
   class Md
      include DataMapper::Resource

      storage_names[:default] = 'md'

      property :md, Integer, :key => true
      property :dn, Integer, :required => true, :unique_index => :md_dn_key
      property :vb, Text, :required => true, :unique_index => :md_dn_key
      property :vl, Text, :required => true, :unique_index => :md_dn_key

      belongs_to :dn, :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/md.rb