Hello,
Im new to the world of ruby, im currently designing a small clinical information app using ruby, i have designed my tables and relationships by hand but im having some trouble passing it to the rails world, can someone give me a help please?
Thanks
Table Patient,
id_number:string, id_type:string, name:string, common_name:string, address:string, tax_number:string, birth_date:string, sex:string, mobile_phone:string, home_phone:string, work_phone:string, email:string
Table Postal,
code:string
name:string
Table Entity,
name:string
number:string
expiry_date:date
Table Profession,
name:string
Relationships,
Patient has_one :postal, has_one :entity, has_one :profession
Postal has_and_belongs_to_many :patients
Entities belongs_to :patient
Profession has_and_belongs_to_many :patients
Once again many thanks