spec/fixtures/models.rb in dbee-1.0.0.pre.alpha.3 vs spec/fixtures/models.rb in dbee-1.0.0
- old
+ new
@@ -47,16 +47,13 @@
{ 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
@@ -109,11 +106,9 @@
{ 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