Sha256: a1b70e1a48c240f0582096e584238984c7ef6d0aee54e29464cb8bc57c504624

Contents?: true

Size: 503 Bytes

Versions: 1

Compression:

Stored size: 503 Bytes

Contents

module DmPanlex
   class Df
      include DataMapper::Resource

      storage_names[:default] = 'df'

      property :df, Integer, :key => true
      property :mn, Integer, :required => true, :unique_index => :df_mn_key
      property :lv, Integer, :required => true, :unique_index => :df_mn_key
      property :tt, Text, :required => true, :unique_index => :df_mn_key

      belongs_to :lv, :parent_key => :lv, :child_key  => :lv
      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/df.rb