Sha256: c83ed1840bc2584cdda29cde75ddf563a7a861339c89d2bebabea5c9ea85ca31

Contents?: true

Size: 907 Bytes

Versions: 1

Compression:

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

      belongs_to :apli, :parent_key => :li, :child_key  => :li

      has n, :avs, :parent_key => :ap, :child_key => :ap, :constraint => :destroy
      has n, :mns, :parent_key => :ap, :child_key => :ap
   end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dm_panlex-0.2.0 lib/dm_panlex/models/ap.rb