Defining Relationships in Ruby
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?
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
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