spec/fixtures/models.rb in dbee-1.1.0 vs spec/fixtures/models.rb in dbee-1.2.0

- old
+ new

@@ -137,5 +137,22 @@ class D < Dbee::Base association :a, model: 'Cycles::A' end end + +# Examples of Rails Single Table Inheritance. +module PartitionerExamples + class Owners < Dbee::Base + association :dogs, model: 'PartitionerExamples::Dogs', constraints: { + name: :owner_id, parent: :id + } + end + + class Dogs < Dbee::Base + table 'animals' + + partitioner :type, 'Dog' + + partitioner :deleted, false + end +end