spec/fixtures/models.rb in dbee-1.2.0 vs spec/fixtures/models.rb in dbee-1.2.1
- old
+ new
@@ -21,10 +21,12 @@
parent: :id
}
end
class MembersBase < Dbee::Base
+ table 'members'
+
association :demos, model: Demographics,
constraints: { type: :reference, name: :member_id, parent: :id }
association :movies, model: Movies,
constraints: { name: :member_id, parent: :id }
@@ -53,10 +55,12 @@
{ type: :reference, name: :partition, parent: :partition }
]
end
class Theaters < TheatersBase
+ table 'theaters'
+
association :parent_theater, model: self, constraints: [
{ type: :reference, name: :id, parent: :parent_theater_id }
]
end
@@ -146,12 +150,13 @@
association :dogs, model: 'PartitionerExamples::Dogs', constraints: {
name: :owner_id, parent: :id
}
end
- class Dogs < Dbee::Base
- table 'animals'
+ class Animals < Dbee::Base
+ end
+ class Dogs < Animals
partitioner :type, 'Dog'
partitioner :deleted, false
end
end