Sha256: 1753050960d9f3423bfd95cc1bfa9a47526c493a1374f88455d906718ef14df2

Contents?: true

Size: 383 Bytes

Versions: 2

Compression:

Stored size: 383 Bytes

Contents

module DmPanlex
   class Apli
      include DataMapper::Resource

      storage_names[:default] = 'apli'

      property :id, Integer, :key => true
      property :li, String, :length => 2, :required => true, :unique_index => true
      property :pl, Text, :required => true, :unique_index => true

      has n, :aps, :model => 'Ap', :parent_key => :li, :child_key => :li
   end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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