Sha256: d95fc299749af8a731724f1d4db23c716fce5e24de1a4d30c29a173af1660f0b

Contents?: true

Size: 396 Bytes

Versions: 17

Compression:

Stored size: 396 Bytes

Contents

#!/usr/bin/env ruby

class RelatedCheck
  include DataMapper::Resource

  belongs_to :parent_check, :class_name => "Check", :child_key => [:parent_id]
  belongs_to :child_check, :class_name => "Check", :child_key => [:child_id]

  property :id,        Serial, :key => true
  #property :parent_check_id, Integer, :nullable => false
  #property :child_check_id,  Integer, :nullable => false



end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
flapjack-0.6.39 lib/flapjack/persistence/data_mapper/models/related_check.rb
flapjack-0.6.38 lib/flapjack/persistence/data_mapper/models/related_check.rb
flapjack-0.6.37 lib/flapjack/persistence/data_mapper/models/related_check.rb
flapjack-0.6.36 lib/flapjack/persistence/data_mapper/models/related_check.rb
flapjack-0.6.35 lib/flapjack/persistence/data_mapper/models/related_check.rb
flapjack-0.6.34 lib/flapjack/persistence/data_mapper/models/related_check.rb
flapjack-0.6.33 lib/flapjack/persistence/data_mapper/models/related_check.rb
flapjack-0.6.32 lib/flapjack/persistence/data_mapper/models/related_check.rb
flapjack-0.6.31 lib/flapjack/persistence/data_mapper/models/related_check.rb
flapjack-0.6.30 lib/flapjack/persistence/data_mapper/models/related_check.rb
flapjack-0.6.29 lib/flapjack/persistence/data_mapper/models/related_check.rb
flapjack-0.6.28 lib/flapjack/persistence/data_mapper/models/related_check.rb
flapjack-0.6.27 lib/flapjack/persistence/data_mapper/models/related_check.rb
flapjack-0.6.26 lib/flapjack/persistence/data_mapper/models/related_check.rb
flapjack-0.6.25 lib/flapjack/persistence/data_mapper/models/related_check.rb
flapjack-0.6.24 lib/flapjack/persistence/data_mapper/models/related_check.rb
flapjack-0.6.23 lib/flapjack/persistence/data_mapper/models/related_check.rb