Sha256: e692af85db7335e24a7d302e73d49ff2d70caea6badd98749f81fd2b52d5388d

Contents?: true

Size: 579 Bytes

Versions: 1

Compression:

Stored size: 579 Bytes

Contents

module DmPanlex
   class Ex
      include DataMapper::Resource

      storage_names[:default] = 'ex'

      property :ex, Integer, :key => true
      property :lv, Integer, :required => true, :unique_index => :ex_lv_tt_key, :index => true
      property :tt, Text, :required => true, :unique_index => :ex_lv_tt_key, :index => true
      property :td, Text, :required => true, :index => true

      belongs_to :lv, :parent_key => :lv, :child_key  => :lv

      has n, :dms, :parent_key => :ex, :child_key => :ex
      has n, :dns, :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/ex.rb