Sha256: 4e23bbcfabc4772abc64333fb8b1417f43effb4e9fb459f75cc327f69beba38a

Contents?: true

Size: 509 Bytes

Versions: 2

Compression:

Stored size: 509 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

      has n, :dms, :model => 'Dm', :child_key => :ex
      has n, :dns, :model => 'Dn', :child_key => :ex
   end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dm_panlex-0.2.2 lib/dm_panlex/models/ex.rb
dm_panlex-0.2.1 lib/dm_panlex/models/ex.rb