Sha256: 9009cce6811cff9d48a19ad82791e3d130b081171762a1bcec0d86895b21d080

Contents?: true

Size: 430 Bytes

Versions: 1

Compression:

Stored size: 430 Bytes

Contents

module DmPanlex
   class Dm
      include DataMapper::Resource

      storage_names[:default] = 'dm'

      property :dm, Integer, :key => true
      property :mn, Integer, :required => true, :unique_index => :dm_mn_key
      property :ex, Integer, :required => true, :unique_index => :dm_mn_key

      belongs_to :ex, :parent_key => :ex, :child_key  => :ex
      belongs_to :mn, :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/dm.rb