Sha256: fc447ff8419dee0ca1cf68802eb799c0fedf70f0751921583ea8eee2119cd4ef

Contents?: true

Size: 835 Bytes

Versions: 2

Compression:

Stored size: 835 Bytes

Contents

module DmPanlex
   class Ap
      include DataMapper::Resource

      storage_names[:default] = 'ap'

      property :ap, Integer, :key => true
      property :dt, Date, :field => 'dt', :required => true
      property :tt, Text, :required => true, :unique_index => true
      property :ur, Text
      property :bn, Text
      property :au, Text
      property :ti, Text
      property :pb, Text
      property :yr, Integer, :min => -32768, :max => 32767
      property :uq, Integer, :min => -32768, :max => 32767, :required => true
      property :ui, Integer, :min => -32768, :max => 32767
      property :ul, Text
      property :ip, Text
      property :co, Text
      property :ad, Text

      has n, :avs, :model => 'Av', :child_key => :ap, :constraint => :destroy
      has n, :mns, :model => 'Mn', :child_key => :ap
   end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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