spec/fixtures/models.rb in dbee-1.0.0.pre.alpha vs spec/fixtures/models.rb in dbee-1.0.0.pre.alpha.1
- old
+ new
@@ -47,13 +47,16 @@
{ type: :static, name: :genre, value: 'comedy' }
]
end
class TheatersBase < Dbee::Base
+ boolean_column :active, nullable: false
end
class Theaters < TheatersBase
+ boolean_column :inspected
+
association :members, model: Members, constraints: [
{ type: :reference, name: :tid, parent: :id },
{ type: :reference, name: :partition, parent: :partition }
]
end
@@ -106,9 +109,11 @@
{ type: :static, name: :phone_number_type, value: 'fax' }
]
end
class Practices < Dbee::Base
+ boolean_column :active, nullable: false
+
association :patients, model: Patients, constraints: {
type: :reference, name: :practice_id, parent: :id
}
end
end