Sha256: a122a5603a349d2def60738e1b9d3864cc88e3bf2b3cb66e3d7c8939ee2a6d0d

Contents?: true

Size: 432 Bytes

Versions: 1

Compression:

Stored size: 432 Bytes

Contents

module DmPanlex
   class Wc
      include DataMapper::Resource

      storage_names[:default] = 'wc'

      property :wc, Integer, :key => true
      property :dn, Integer, :required => true, :unique_index => :wc_dn_key
      property :ex, Integer, :required => true, :unique_index => :wc_dn_key

      belongs_to :dn, :parent_key => :dn, :child_key  => :dn
      belongs_to :wcex, :parent_key => :ex, :child_key  => :ex
   end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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